mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-31 18:13:21 +00:00
hey look, someone already did the xUnit 2 support for FAKE
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user