mirror of
https://github.com/ppy/osu.git
synced 2026-06-03 14:24:18 +08:00
Use ExplicitAttribute instead of manual nunit ignore
This commit is contained in:
@@ -6,9 +6,8 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Framework.Development;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Collections;
|
||||
@@ -258,14 +257,12 @@ namespace osu.Game.Tests.Visual.SongSelectV2
|
||||
#region Benchmarks
|
||||
|
||||
[Test]
|
||||
[Explicit("Manual benchmark")]
|
||||
public void TestPerformance()
|
||||
{
|
||||
const int sets_count = 100;
|
||||
const int diffs_count = 100;
|
||||
|
||||
if (DebugUtils.IsNUnitRunning)
|
||||
Assert.Ignore("For benchmarking purposes only.");
|
||||
|
||||
AddStep("log in", () =>
|
||||
{
|
||||
API.Login("user1", string.Empty); // match username in test scores.
|
||||
|
||||
Reference in New Issue
Block a user