Quick Notes85 words
Implementing tests in a pipeline — quick notes
Tests in a pipeline — quick notes
| Item | Detail |
|---|---|
| Publish task | PublishTestResults@2 |
| Supported formats | JUnit · NUnit · VSTest · xUnit · CTest |
| Essential condition | succeededOrFailed() — otherwise results are lost on failure |
mergeTestResults | Combines many files into one run |
| Parallelism | Slice across agents; slicing must be deterministic |
The classic bug: publishing test results without condition: succeededOrFailed(). The step is skipped precisely when tests failed.