Skip to content

Commit

Permalink
Show Test FullName (microsoft#807)
Browse files Browse the repository at this point in the history
* update ci pipelines

* update garnet ci for github
  • Loading branch information
vazois authored Nov 15, 2024
1 parent 2774e6a commit 7360073
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .azure/pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
inputs:
command: test
projects: '**/Garnet.test.cluster.csproj'
arguments: '--configuration $(buildConfiguration) --logger:"console;verbosity=detailed" --collect "Code coverage" --settings $(Build.SourcesDirectory)\.azure\pipelines\CodeCoverage.runsettings'
arguments: '--configuration $(buildConfiguration) --logger:"console;verbosity=detailed" --collect "Code coverage" --settings $(Build.SourcesDirectory)\.azure\pipelines\CodeCoverage.runsettings -- NUnit.DisplayName=FullName'

- task: DotNetCoreCLI@2
displayName: 'Build Garnet binaries and tests $(buildConfiguration)'
Expand All @@ -80,7 +80,7 @@ jobs:
inputs:
command: test
projects: '**/Garnet.test.csproj'
arguments: '--configuration $(buildConfiguration) --logger:"console;verbosity=detailed" --collect "Code coverage" --settings $(Build.SourcesDirectory)\.azure\pipelines\CodeCoverage.runsettings'
arguments: '--configuration $(buildConfiguration) --logger:"console;verbosity=detailed" --collect "Code coverage" --settings $(Build.SourcesDirectory)\.azure\pipelines\CodeCoverage.runsettings -- NUnit.DisplayName=FullName'

- task: NuGetCommand@2
displayName: Pack nuget package to test nuspec is correct
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
inputs:
command: test
projects: '**/Garnet.test.cluster.csproj'
arguments: '--configuration $(buildConfiguration) --logger:"console;verbosity=detailed" --collect "Code coverage" --settings $(Build.SourcesDirectory)\.azure\pipelines\CodeCoverage.runsettings'
arguments: '--configuration $(buildConfiguration) --logger:"console;verbosity=detailed" --collect "Code coverage" --settings $(Build.SourcesDirectory)\.azure\pipelines\CodeCoverage.runsettings -- NUnit.DisplayName=FullName'

- task: DotNetCoreCLI@2
displayName: '.NET Core build Garnet binaries and tests $(buildConfiguration)'
Expand All @@ -160,7 +160,7 @@ jobs:
inputs:
command: test
projects: '**/Garnet.test.csproj'
arguments: '--configuration $(buildConfiguration) --logger:"console;verbosity=detailed" --collect "Code coverage" --settings $(Build.SourcesDirectory)\.azure\pipelines\CodeCoverage.runsettings'
arguments: '--configuration $(buildConfiguration) --logger:"console;verbosity=detailed" --collect "Code coverage" --settings $(Build.SourcesDirectory)\.azure\pipelines\CodeCoverage.runsettings -- NUnit.DisplayName=FullName'
publishTestResults: true

- task: PublishTestResults@2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Build Garnet
run: dotnet build --configuration ${{ matrix.configuration }}
- name: Run tests ${{ matrix.test }}
run: dotnet test test/${{ matrix.test }} -f ${{ matrix.framework }} --configuration ${{ matrix.configuration }} --logger "console;verbosity=detailed" --logger trx --results-directory "GarnetTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}-${{ matrix.test }}"
run: dotnet test test/${{ matrix.test }} -f ${{ matrix.framework }} --configuration ${{ matrix.configuration }} --logger "console;verbosity=detailed" --logger trx --results-directory "GarnetTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}-${{ matrix.test }}" -- NUnit.DisplayName=FullName
timeout-minutes: 45
- name: Upload test results
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 7360073

Please sign in to comment.