diff --git a/docs/docs/advanced/performance-best-practices.md b/docs/docs/advanced/performance-best-practices.md index 15034990fd..b5156a4603 100644 --- a/docs/docs/advanced/performance-best-practices.md +++ b/docs/docs/advanced/performance-best-practices.md @@ -510,7 +510,7 @@ dotnet test --no-build -- --treenode-filter "/*/*/*/*[Category=E2E]" ```bash # Stop on first failure to save CI time -dotnet test --fail-fast +dotnet test -- --fail-fast ``` ## Monitoring and Profiling diff --git a/docs/docs/examples/tunit-ci-pipeline.md b/docs/docs/examples/tunit-ci-pipeline.md index 3d2bff9aab..693f0a008c 100644 --- a/docs/docs/examples/tunit-ci-pipeline.md +++ b/docs/docs/examples/tunit-ci-pipeline.md @@ -48,7 +48,7 @@ jobs: run: dotnet build --configuration Release --no-restore - name: Run tests with coverage - run: dotnet test --configuration Release --no-build --coverage --report-trx --results-directory ./TestResults + run: dotnet test --configuration Release --no-build -- --coverage --report-trx --results-directory ./TestResults - name: Upload test results if: always() # Run even if tests fail @@ -140,7 +140,7 @@ jobs: dotnet-version: '9.0.x' - name: Run tests - run: dotnet test --configuration Release --report-trx --results-directory ./TestResults + run: dotnet test --configuration Release -- --report-trx --results-directory ./TestResults - name: Comment PR with results if: always() @@ -272,7 +272,7 @@ steps: inputs: version: '$(dotnetVersion)' -- script: dotnet test --configuration Release --report-trx +- script: dotnet test --configuration Release -- --report-trx displayName: 'Run tests on $(vmImage) with .NET $(dotnetVersion)' ``` @@ -363,7 +363,7 @@ coverage-report: .test-template: stage: test script: - - dotnet test --configuration Release --report-trx + - dotnet test --configuration Release -- --report-trx test:net8: extends: .test-template @@ -607,7 +607,7 @@ Run different test categories in separate jobs: Use fail-fast mode for quick feedback in pull requests: ```bash -dotnet test --fail-fast +dotnet test -- --fail-fast ``` ## Troubleshooting diff --git a/docs/docs/execution/ci-cd-reporting.md b/docs/docs/execution/ci-cd-reporting.md index 503941e378..7a9bad90d6 100644 --- a/docs/docs/execution/ci-cd-reporting.md +++ b/docs/docs/execution/ci-cd-reporting.md @@ -172,7 +172,7 @@ While TUnit currently provides specialized support for GitHub Actions, it works Use TRX reporting for Azure DevOps integration: ```bash -dotnet test --report-trx --report-trx-filename TestResults.trx +dotnet test -- --report-trx --report-trx-filename TestResults.trx ``` ### Jenkins @@ -181,7 +181,7 @@ Jenkins can consume various test output formats: ```bash # Generate TRX report for Jenkins -dotnet test --report-trx +dotnet test -- --report-trx # Or use console output with appropriate verbosity dotnet test --logger "console;verbosity=detailed" @@ -194,7 +194,7 @@ GitLab can parse test results in various formats: ```yaml test: script: - - dotnet test --report-trx + - dotnet test -- --report-trx artifacts: reports: junit: diff --git a/docs/docs/troubleshooting.md b/docs/docs/troubleshooting.md index 97bc0074f6..91347fc1f0 100644 --- a/docs/docs/troubleshooting.md +++ b/docs/docs/troubleshooting.md @@ -357,7 +357,7 @@ public async Task LongRunningTest() #### 2. Global Timeout Configuration ```bash -dotnet test --timeout 60s +dotnet test -- --timeout 60s ``` #### 3. Check for Infinite Loops diff --git a/global.json b/global.json index 2139291fc8..67b0c9d008 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "10.0.101", + "version": "10.0.100", "rollForward": "latestMajor", "allowPrerelease": true },