Skip to content

Commit

Permalink
Upgrade packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Chocholowicz committed Jan 19, 2024
1 parent dfb0a51 commit 76c03dd
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Algorithms_Scenario01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet run --no-build --ms-coverage --ms-coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --ms-coverage-output-format cobertura
run: dotnet run --no-build --coverage --coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --coverage-output-format cobertura
- name: ReportGenerator
uses: danielpalme/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Algorithms_Scenario02.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet run --no-build --ms-coverage --ms-coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --ms-coverage-output-format cobertura --ms-coverage-settings ../../scenarios/scenario02/coverage.config
run: dotnet run --no-build --coverage --coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --coverage-output-format cobertura --coverage-settings ../../scenarios/scenario02/coverage.config
- name: ReportGenerator
uses: danielpalme/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Algorithms_Scenario03.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Build
run: dotnet build --no-restore /p:MsCodeCoverageInstrumentation="true"
- name: Test
run: dotnet run --no-build --ms-coverage --ms-coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --ms-coverage-output-format cobertura
run: dotnet run --no-build --coverage --coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --coverage-output-format cobertura
- name: ReportGenerator
uses: danielpalme/[email protected]
with:
Expand Down
6 changes: 3 additions & 3 deletions samples/Algorithms/scenarios/scenario01/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Collect code coverage using dynamic instrumentation for MSTest runner project.
```shell
git clone https://github.com/microsoft/codecoverage.git
cd codecoverage/samples/Algorithms/tests/Algorithms.Core.Tests/
dotnet run --ms-coverage --ms-coverage-output report.cobertura.xml --ms-coverage-output-format cobertura
dotnet run --coverage --coverage-output report.cobertura.xml --coverage-output-format cobertura
```

You can also use [run.ps1](run.ps1) to collect code coverage.
Expand All @@ -30,7 +30,7 @@ You can also use [run.ps1](run.ps1) to collect code coverage.
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet run --no-build --ms-coverage --ms-coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --ms-coverage-output-format cobertura
run: dotnet run --no-build --coverage --coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --coverage-output-format cobertura
- name: ReportGenerator
uses: danielpalme/[email protected]
with:
Expand Down Expand Up @@ -70,7 +70,7 @@ steps:
- task: DotNetCoreCLI@2
inputs:
command: 'run'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --ms-coverage --ms-coverage-output $(Agent.TempDirectory)/report.cobertura.xml --ms-coverage-output-format cobertura --report-trx'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --coverage --coverage-output $(Agent.TempDirectory)/report.cobertura.xml --coverage-output-format cobertura --report-trx'
projects: '$(projectPath)' # this is specific to example - in most cases not needed
displayName: 'test'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ steps:
- task: DotNetCoreCLI@2
inputs:
command: 'run'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --ms-coverage --ms-coverage-output $(Agent.TempDirectory)/report.cobertura.xml --ms-coverage-output-format cobertura --report-trx'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --coverage --coverage-output $(Agent.TempDirectory)/report.cobertura.xml --coverage-output-format cobertura --report-trx'
projects: '$(projectPath)' # this is specific to example - in most cases not needed
displayName: 'test'

Expand Down
2 changes: 1 addition & 1 deletion samples/Algorithms/scenarios/scenario01/run.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd $PSScriptRoot/../../tests/Algorithms.Core.Tests
dotnet run --ms-coverage --ms-coverage-output report.cobertura.xml --ms-coverage-output-format cobertura
dotnet run --coverage --coverage-output report.cobertura.xml --coverage-output-format cobertura
6 changes: 3 additions & 3 deletions samples/Algorithms/scenarios/scenario02/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Collect code coverage using static instrumentation for MSTest runner project. As
```shell
git clone https://github.com/microsoft/codecoverage.git
cd codecoverage/samples/Algorithms/tests/Algorithms.Core.Tests/
dotnet run --ms-coverage --ms-coverage-output report.cobertura.xml --ms-coverage-output-format cobertura --ms-coverage-settings ../../scenarios/scenario02/coverage.config
dotnet run --coverage --coverage-output report.cobertura.xml --coverage-output-format cobertura --coverage-settings ../../scenarios/scenario02/coverage.config
```

You can also use [run.ps1](run.ps1) to collect code coverage.
Expand All @@ -43,7 +43,7 @@ You can also use [run.ps1](run.ps1) to collect code coverage.
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet run --no-build --ms-coverage --ms-coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --ms-coverage-output-format cobertura --ms-coverage-settings ../../scenarios/scenario02/coverage.config
run: dotnet run --no-build --coverage --coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --coverage-output-format cobertura --coverage-settings ../../scenarios/scenario02/coverage.config
- name: ReportGenerator
uses: danielpalme/[email protected]
with:
Expand Down Expand Up @@ -83,7 +83,7 @@ steps:
- task: DotNetCoreCLI@2
inputs:
command: 'run'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --ms-coverage --ms-coverage-output $(Agent.TempDirectory)/report.cobertura.xml --ms-coverage-output-format cobertura --report-trx'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --coverage --coverage-output $(Agent.TempDirectory)/report.cobertura.xml --coverage-output-format cobertura --report-trx'
projects: '$(projectPath)' # this is specific to example - in most cases not needed
displayName: 'test'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ steps:
- task: DotNetCoreCLI@2
inputs:
command: 'run'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --ms-coverage --ms-coverage-output $(Agent.TempDirectory)/report.cobertura.xml --ms-coverage-output-format cobertura --ms-coverage-settings $(Build.SourcesDirectory)/samples/Algorithms/scenarios/scenario02/coverage.config --report-trx'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --coverage --coverage-output $(Agent.TempDirectory)/report.cobertura.xml --coverage-output-format cobertura --coverage-settings $(Build.SourcesDirectory)/samples/Algorithms/scenarios/scenario02/coverage.config --report-trx'
projects: '$(projectPath)' # this is specific to example - in most cases not needed
displayName: 'test'

Expand Down
2 changes: 1 addition & 1 deletion samples/Algorithms/scenarios/scenario02/run.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd $PSScriptRoot/../../tests/Algorithms.Core.Tests
dotnet run --ms-coverage --ms-coverage-output report.cobertura.xml --ms-coverage-output-format cobertura --ms-coverage-settings $PSScriptRoot/coverage.config
dotnet run --coverage --coverage-output report.cobertura.xml --coverage-output-format cobertura --coverage-settings $PSScriptRoot/coverage.config
6 changes: 3 additions & 3 deletions samples/Algorithms/scenarios/scenario03/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Collect code coverage using compile-time instrumentation for MSTest runner proje
git clone https://github.com/microsoft/codecoverage.git
cd codecoverage/samples/Algorithms/tests/Algorithms.Core.Tests/
dotnet build /p:MsCodeCoverageInstrumentation="true"
dotnet run --no-build --ms-coverage --ms-coverage-output report.cobertura.xml --ms-coverage-output-format cobertura
dotnet run --no-build --coverage --coverage-output report.cobertura.xml --coverage-output-format cobertura
```

You can also use [run.ps1](run.ps1) to collect code coverage.
Expand All @@ -31,7 +31,7 @@ You can also use [run.ps1](run.ps1) to collect code coverage.
- name: Build
run: dotnet build --no-restore /p:MsCodeCoverageInstrumentation="true"
- name: Test
run: dotnet run --no-build --ms-coverage --ms-coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --ms-coverage-output-format cobertura
run: dotnet run --no-build --coverage --coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --coverage-output-format cobertura
- name: ReportGenerator
uses: danielpalme/[email protected]
with:
Expand Down Expand Up @@ -71,7 +71,7 @@ steps:
- task: DotNetCoreCLI@2
inputs:
command: 'run'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --ms-coverage --report-trx'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --coverage --report-trx'
projects: '$(projectPath)' # this is specific to example - in most cases not needed
displayName: 'test'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ steps:
- task: DotNetCoreCLI@2
inputs:
command: 'run'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --ms-coverage --report-trx'
arguments: '--no-build --configuration $(buildConfiguration) --results-directory $(Agent.TempDirectory) --coverage --report-trx'
projects: '$(projectPath)' # this is specific to example - in most cases not needed
displayName: 'test'

Expand Down
2 changes: 1 addition & 1 deletion samples/Algorithms/scenarios/scenario03/run.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cd $PSScriptRoot/../../tests/Algorithms.Core.Tests
dotnet build /p:MsCodeCoverageInstrumentation="true"
dotnet run --no-build --ms-coverage --ms-coverage-output report.cobertura.xml --ms-coverage-output-format cobertura
dotnet run --no-build --coverage --coverage-output report.cobertura.xml --coverage-output-format cobertura

0 comments on commit 76c03dd

Please sign in to comment.