Add test results to AppVeyor
This commit is contained in:
parent
d593c639a1
commit
9b5a7a8d84
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -30,7 +30,8 @@ bld/
|
|||
#wwwroot/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
**/[Tt]est[Rr]esult*
|
||||
**/[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUNIT
|
||||
|
|
|
@ -186,4 +186,6 @@ module SlugTests =
|
|||
|
||||
[<EntryPoint>]
|
||||
let main argv =
|
||||
runTestsInAssembly defaultConfig argv
|
||||
let writeResults = TestResults.writeNUnitSummary ("TestResults.xml", "Expecto.Tests")
|
||||
let config = defaultConfig.appendSummaryHandler writeResults
|
||||
runTestsInAssembly config argv
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
Expecto
|
||||
Expecto.TestResults
|
||||
|
|
|
@ -3,12 +3,15 @@ os: Visual Studio 2019
|
|||
build_script:
|
||||
- cmd: dotnet tool install --global paket
|
||||
- cmd: dotnet restore FunctionalCuid.sln
|
||||
- cmd: dotnet build -v n FunctionalCuid.sln
|
||||
- cmd: dotnet build -v n --configuration Release FunctionalCuid\FunctionalCuid.fsproj
|
||||
- cmd: dotnet build -v n FunctionalCuid\FunctionalCuid.Tests.fsproj
|
||||
- cmd: dotnet pack FunctionalCuid\FunctionalCuid.fsproj -o %CD%\artifacts\nupkg
|
||||
|
||||
artifacts:
|
||||
- path: artifacts\nupkg\*.nupkg
|
||||
|
||||
test_script:
|
||||
- cmd: cd FunctionalCuid.Tests
|
||||
- cmd: dotnet run
|
||||
- ps: cd FunctionalCuid.Tests
|
||||
- ps: dotnet run
|
||||
- ps: $wc = New-Object 'System.Net.WebClient'
|
||||
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestResults.xml))
|
||||
|
|
|
@ -2,3 +2,4 @@ source https://www.nuget.org/api/v2
|
|||
|
||||
nuget FSharp.Core
|
||||
nuget Expecto
|
||||
nuget Expecto.TestResults
|
||||
|
|
|
@ -3,6 +3,9 @@ NUGET
|
|||
Expecto (8.11)
|
||||
FSharp.Core (>= 4.3.4) - restriction: || (>= net461) (>= netstandard2.0)
|
||||
Mono.Cecil (>= 0.10.3) - restriction: || (>= net461) (>= netstandard2.0)
|
||||
Expecto.TestResults (8.11)
|
||||
Expecto (>= 8.11) - restriction: || (>= net461) (>= netstandard2.0)
|
||||
FSharp.Core (>= 4.3.4) - restriction: || (>= net461) (>= netstandard2.0)
|
||||
FSharp.Core (4.7)
|
||||
Microsoft.NETCore.Platforms (2.2.2) - restriction: || (&& (< monoandroid) (< net35) (< netstandard1.3) (>= netstandard2.0) (< win8) (< wpa81)) (&& (< monoandroid) (< net35) (< netstandard1.5) (>= netstandard2.0) (< win8) (< wpa81)) (&& (< monoandroid) (< net35) (>= netstandard2.0) (< xamarinios) (< xamarinmac)) (&& (< net35) (>= net461))
|
||||
Microsoft.NETCore.Targets (2.1) - restriction: || (&& (< monoandroid) (< net35) (< netstandard1.3) (>= netstandard2.0) (< win8) (< wpa81)) (&& (< monoandroid) (< net35) (< netstandard1.5) (>= netstandard2.0) (< win8) (< wpa81)) (&& (< monoandroid) (< net35) (>= netstandard2.0) (< xamarinios) (< xamarinmac)) (&& (< net35) (>= net461))
|
||||
|
|
Loading…
Reference in New Issue
Block a user