Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/advanced/performance-best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions docs/docs/examples/tunit-ci-pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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)'
```

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/execution/ci-cd-reporting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "10.0.101",
"version": "10.0.100",
"rollForward": "latestMajor",
"allowPrerelease": true
},
Expand Down
Loading