hey look, someone already did the xUnit 2 support for FAKE

This commit is contained in:
Brendan Forster
2014-12-18 20:50:04 +09:30
parent ae6b11d59f
commit 96ae3fa4dd
2 changed files with 7 additions and 12 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
@echo off
"tools\nuget\nuget.exe" "install" "xunit.runners" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "2.0.0-beta5-build2785"
"tools\nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "3.5.8"
"tools\nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "3.12.2"
"tools\nuget\nuget.exe" "install" "SourceLink.Fake" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "0.4.2"
:Build
+6 -11
View File
@@ -36,6 +36,7 @@ Target "Clean" (fun _ ->
)
open Fake.AssemblyInfoFile
open Fake.XUnit2Helper
Target "AssemblyInfo" (fun _ ->
CreateCSharpAssemblyInfo "./SolutionInfo.cs"
@@ -68,29 +69,23 @@ Target "BuildApp" (fun _ ->
Target "ConventionTests" (fun _ ->
!! (sprintf "./Octokit.Tests.Conventions/bin/%s/**/Octokit.Tests.Conventions.dll" buildMode)
|> xUnit (fun p ->
{p with
XmlOutput = true
Verbose = false
|> xUnit2 (fun p ->
{p with
OutputDir = testResultsDir })
)
Target "UnitTests" (fun _ ->
!! (sprintf "./Octokit.Tests/bin/%s/**/Octokit.Tests*.dll" buildMode)
|> xUnit (fun p ->
{p with
XmlOutput = true
Verbose = false
|> xUnit2 (fun p ->
{p with
OutputDir = testResultsDir })
)
Target "IntegrationTests" (fun _ ->
if hasBuildParam "OCTOKIT_GITHUBUSERNAME" && hasBuildParam "OCTOKIT_GITHUBPASSWORD" then
!! (sprintf "./Octokit.Tests.Integration/bin/%s/**/Octokit.Tests.Integration.dll" buildMode)
|> xUnit (fun p ->
|> xUnit2 (fun p ->
{p with
XmlOutput = true
Verbose = false
OutputDir = testResultsDir
TimeOut = TimeSpan.FromMinutes 10.0 })
else