Add test results to AppVeyor

This commit is contained in:
Daniel J. Summers 2019-08-09 14:00:35 -05:00
parent d593c639a1
commit 9b5a7a8d84
6 changed files with 16 additions and 5 deletions

3
.gitignore vendored
View File

@ -30,7 +30,8 @@ bld/
#wwwroot/ #wwwroot/
# MSTest test Results # MSTest test Results
[Tt]est[Rr]esult*/ **/[Tt]est[Rr]esult*
**/[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.* [Bb]uild[Ll]og.*
# NUNIT # NUNIT

View File

@ -186,4 +186,6 @@ module SlugTests =
[<EntryPoint>] [<EntryPoint>]
let main argv = let main argv =
runTestsInAssembly defaultConfig argv let writeResults = TestResults.writeNUnitSummary ("TestResults.xml", "Expecto.Tests")
let config = defaultConfig.appendSummaryHandler writeResults
runTestsInAssembly config argv

View File

@ -1 +1,2 @@
Expecto Expecto
Expecto.TestResults

View File

@ -3,12 +3,15 @@ os: Visual Studio 2019
build_script: build_script:
- cmd: dotnet tool install --global paket - cmd: dotnet tool install --global paket
- cmd: dotnet restore FunctionalCuid.sln - 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 - cmd: dotnet pack FunctionalCuid\FunctionalCuid.fsproj -o %CD%\artifacts\nupkg
artifacts: artifacts:
- path: artifacts\nupkg\*.nupkg - path: artifacts\nupkg\*.nupkg
test_script: test_script:
- cmd: cd FunctionalCuid.Tests - ps: cd FunctionalCuid.Tests
- cmd: dotnet run - 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))

View File

@ -2,3 +2,4 @@ source https://www.nuget.org/api/v2
nuget FSharp.Core nuget FSharp.Core
nuget Expecto nuget Expecto
nuget Expecto.TestResults

View File

@ -3,6 +3,9 @@ NUGET
Expecto (8.11) Expecto (8.11)
FSharp.Core (>= 4.3.4) - restriction: || (>= net461) (>= netstandard2.0) FSharp.Core (>= 4.3.4) - restriction: || (>= net461) (>= netstandard2.0)
Mono.Cecil (>= 0.10.3) - 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) 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.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)) 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))