mirror of https://github.com/ppy/osu
Use Dotnet core VSTest
This allows only running one testrun.
This commit is contained in:
parent
e20b084900
commit
03ff695a67
15
build.cake
15
build.cake
|
@ -12,7 +12,6 @@ var configuration = Argument("configuration", "Release");
|
|||
|
||||
var osuDesktop = new FilePath("./osu.Desktop/osu.Desktop.csproj");
|
||||
var osuSolution = new FilePath("./osu.sln");
|
||||
var testProjects = GetFiles("**/*.Tests.csproj");
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// TASKS
|
||||
|
@ -27,13 +26,13 @@ Task("Compile")
|
|||
});
|
||||
|
||||
Task("Test")
|
||||
.ContinueOnError()
|
||||
.DoesForEach(testProjects, testProject => {
|
||||
DotNetCoreTest(testProject.FullPath, new DotNetCoreTestSettings {
|
||||
Framework = framework,
|
||||
Configuration = configuration,
|
||||
Logger = AppVeyor.IsRunningOnAppVeyor ? "Appveyor" : $"trx;LogFileName={testProject.GetFilename()}.trx",
|
||||
ResultsDirectory = "./TestResults/"
|
||||
.Does(() => {
|
||||
var testAssemblies = GetFiles("**/*.Tests/bin/**/*.Tests.dll");
|
||||
|
||||
DotNetCoreVSTest(testAssemblies, new DotNetCoreVSTestSettings {
|
||||
Logger = AppVeyor.IsRunningOnAppVeyor ? "Appveyor" : $"trx",
|
||||
Parallel = true,
|
||||
ToolTimeout = TimeSpan.FromMinutes(10),
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue