diff --git a/assets/img/comment.png b/assets/img/comment.png new file mode 100644 index 0000000..f5f08f4 Binary files /dev/null and b/assets/img/comment.png differ diff --git a/readme.md b/readme.md index 06f6265..14d749e 100644 --- a/readme.md +++ b/readme.md @@ -13,6 +13,22 @@ Pretty-print test results in TRX format. Typical usage: `dotnet test --logger trx; trx` (optionally with `--output`). +It automatically integrates with GitHub Actions by appending a pull request comment with the results too. +Set up workflow with: + +```yml + - name: 🧪 show + if: always() + run: + dotnet tool update -g dotnet-trx + trx --output +``` + +And view results in an automatic pull request comment like: + +![PR comment](https://raw.githubusercontent.com/devlooped/dotnet-trx/main/assets/img/comment.png) + + ```shell USAGE: trx [OPTIONS]