Add desktop unit tests project.

This commit is contained in:
Dean Herbert
2017-02-09 19:24:53 +09:00
parent 829fb2605b
commit e0b7517535
11 changed files with 265 additions and 16 deletions

View File

@ -18,6 +18,8 @@ namespace osu.Desktop.VisualTests
[STAThread]
public static void Main(string[] args)
{
bool benchmark = args.Length > 0 && args[0] == @"-benchmark";
using (BasicGameHost host = Host.GetSuitableHost(@"osu"))
{
Ruleset.Register(new OsuRuleset());
@ -25,7 +27,10 @@ namespace osu.Desktop.VisualTests
Ruleset.Register(new ManiaRuleset());
Ruleset.Register(new CatchRuleset());
host.Add(new VisualTestGame());
if (benchmark)
host.Add(new Benchmark());
else
host.Add(new VisualTestGame());
host.Run();
}
}