benjaminmichaelis/TRX to VS Playlist Converter
Convert TRX test result files to Visual Studio Test playlist files.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| trx-file-path | Path or glob pattern to the TRX file(s) to convert. Supports wildcards like *.trx or **/TestResults/*.trx. Multiple TRX files will be merged into a single playlist by default unless separate is true. | yes | — |
| output-directory | Directory to write the output playlist file(s) to (optional). If not specified, the playlist will be saved in the same directory as the TRX file with the same name but .playlist extension. | no | — |
| test-outcomes | Test outcomes to include in the playlist (comma-separated). Accepts: Passed, Failed, NotExecuted, Inconclusive, Timeout, Pending. Default: Failed | no | Failed |
| artifact-name | Name for the uploaded artifact. If not specified, a unique default name is generated from the run metadata. | no | — |
| skip-empty | Skip writing out empty playlist files. If true, empty playlists will not be created. Default: true | no | true |
| separate | When multiple TRX files are found, create separate playlist files for each instead of merging into one. If output-directory is not specified, playlists will be created in the same directory as the source TRX files. Default: false (merge into single playlist) | no | false |
| tool-version | Version of trx-to-vsplaylist .NET tool to install. | no | 2.0.0 |
| dotnet-version | .NET SDK channel to install (e.g. '10.0'). Installation is skipped when a compatible SDK matching the requested channel is already available on PATH; otherwise the requested SDK channel is installed automatically. | no | 10.0 |
Outputs
| name | description |
|---|---|
| playlist-path | Path to the generated playlist file (when using merge mode with single output) |
| playlist-paths | Colon-separated list of generated playlist paths (relative when possible in separate mode) |
| playlist-paths-json | JSON array of generated playlist paths (platform-safe for Windows absolute paths) |
| artifact-dir | Directory containing the generated playlist file(s) |