Skip to content

Commit

Permalink
Don't delete NUnit test results
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Mar 14, 2016
1 parent 0b6ef87 commit 89eb799
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -26,4 +26,5 @@ Packages.dgml
*.crunchproject.local.xml
*_mm_cache.bin
AutoFixture character.design
.fake/
.fake/
NUnit[23]TestResult.xml
16 changes: 6 additions & 10 deletions Build.fsx
Expand Up @@ -50,22 +50,20 @@ Target "TestOnly" (fun _ ->
let nunit2TestAssemblies = !! (sprintf "Src/AutoFixture.NUnit2.*Test/bin/%s/*Test.dll" configuration)

nunit2TestAssemblies
|> NUnit (fun p -> { p with StopOnError = false })
|> NUnit (fun p -> { p with StopOnError = false
OutputFile = "NUnit2TestResult.xml" })

let nunit3TestAssemblies = !! (sprintf "Src/AutoFixture.NUnit3.UnitTest/bin/%s/Ploeh.AutoFixture.NUnit3.UnitTest.dll" configuration)

nunit3TestAssemblies
|> NUnit3 (fun p -> { p with StopOnError = false })
|> NUnit3 (fun p -> { p with StopOnError = false
ResultSpecs = ["NUnit3TestResult.xml;format=nunit2"] })
)

Target "BuildAndTestOnly" (fun _ -> ())
Target "Build" (fun _ -> ())
Target "Test" (fun _ -> ())

Target "DeleteTestResultFiles" (fun _ ->
DeleteFile "TestResult.xml"
)

Target "CopyToReleaseFolder" (fun _ ->
let buildOutput = [
"Src/AutoFixture/bin/Release/Ploeh.AutoFixture.dll";
Expand Down Expand Up @@ -155,14 +153,12 @@ Target "CompleteBuild" (fun _ -> ())

"BuildOnly" ==> "BuildAndTestOnly"
"TestOnly" ==> "BuildAndTestOnly"

"Test" ==> "DeleteTestResultFiles"

"Test" ==> "CopyToReleaseFolder"

"CleanNuGetPackages" ==> "NuGetPack"
"CopyToReleaseFolder" ==> "NuGetPack"

"NuGetPack" ==> "CompleteBuild"
"DeleteTestResultFiles" ==> "CompleteBuild"
"NuGetPack" ==> "CompleteBuild"

RunTargetOrDefault "CompleteBuild"

0 comments on commit 89eb799

Please sign in to comment.