Run tests as part of CI (#67)
* Run tests as part of CI
* update action org
* try main version
* Run tests by calling vstest.console.exe directly
* improve step names
* add failing test to check CI fails
* Revert "add failing test to check CI fails"
This reverts commit effde14668
.
* try generating test report
* Update build.yml
* Update build.yml
* remove documented arg that isn't actually supported
* specify path when creating test reports
* re-add failing test to see output from GA chceck
* remove deliberately failing test
This commit is contained in:
Родитель
18fe7e7d92
Коммит
d4bfc96121
|
@ -69,6 +69,28 @@ jobs:
|
|||
if: ${{github.ref == 'refs/heads/main'}}
|
||||
run: dotnet nuget push "**/*.nupkg" --api-key dummy --source LabsFeed --skip-duplicate
|
||||
|
||||
|
||||
# Run tests
|
||||
- name: Setup VSTest Path
|
||||
uses: darenm/Setup-VSTest@v1
|
||||
|
||||
- name: Run SourceGenerators tests
|
||||
run: vstest.console.exe ./Common/CommunityToolkit.Labs.Core.SourceGenerators.Tests/CommunityToolkit.Labs.Core.SourceGenerators.Tests/bin/Release/net6.0/CommunityToolkit.Labs.Core.SourceGenerators.Tests.dll /logger:"trx;LogFileName=SourceGenerators.trx"
|
||||
|
||||
- name: Run experiment tests against UWP
|
||||
run: vstest.console.exe ./Tests/**/CommunityToolkit.Labs.UnitTests.UWP.build.appxrecipe /Framework:FrameworkUap10 /logger:"trx;LogFileName=UWP.trx"
|
||||
|
||||
- name: Run experiment tests against WinAppSDK
|
||||
run: vstest.console.exe ./Tests/**/CommunityToolkit.Labs.UnitTests.WinAppSdk.build.appxrecipe /Framework:FrameworkUap10 /logger:"trx;LogFileName=WinAppSdk.trx"
|
||||
|
||||
- name: Create test reports
|
||||
uses: dorny/test-reporter@v1
|
||||
if: success() || failure() # run this step even if previous step failed
|
||||
with:
|
||||
name: Test results
|
||||
path: './TestResults/*.trx'
|
||||
reporter: dotnet-trx
|
||||
|
||||
# Test/temp job to build a single experiment to ensure our changes work for both our main types of solutions at the moment
|
||||
experiment:
|
||||
runs-on: windows-latest
|
||||
|
|
Загрузка…
Ссылка в новой задаче