dotnet-trx 0.4.5
dotnet tool install --global dotnet-trx --version 0.4.5
此包包含一个 .NET 工具,您可以从 shell/命令行调用。
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local dotnet-trx --version 0.4.5
此包包含一个 .NET 工具,您可以从 shell/命令行调用。
#tool dotnet:?package=dotnet-trx&version=0.4.5
NuGet 团队不为此客户端提供支持。请联系其 维护者 以获得支持。
nuke :add-package dotnet-trx --version 0.4.5
NuGet 团队不为此客户端提供支持。请联系其 维护者 以获得支持。
将测试结果以 TRX 格式美化和打印。
典型用法:dotnet test --logger trx; trx
(可选的 --output
)。
它通过附加带有结果的拉取请求注释自动与 GitHub Actions 集成。使用下面设置的 workflow:
- name: 🧪 show
continue-on-error: true
if: always()
run:
dotnet tool update -g dotnet-trx
trx --output
并在自动拉取请求注释中查看结果,如:
注意:此行为由存在
GITHUB_REF_NAME
和CI
环境变量的条件触发。
USAGE:
trx [OPTIONS]
OPTIONS:
DEFAULT
-h, --help Prints help information
-v, --version Prints version information
-p, --path Optional base directory for *.trx files
discovery. Defaults to current directory
-o, --output Include test output
-r, --recursive True Recursively search for *.trx files
--skipped True Include skipped tests
--no-exit-code Do not return a -1 exit code on test
failures
--gh-comment True Report as GitHub PR comment
--gh-summary True Report as GitHub step summary
安装
dotnet tool install -g dotnet-trx
更新
dotnet tool update -g dotnet-trx
赞助商
产品 | 版本 兼容和额外的目标框架版本。 |
---|---|
.NET | net8.0 兼容。 net8.0-android 已计算。 net8.0-browser 已计算。 net8.0-ios 已计算。 net8.0-maccatalyst 已计算。 net8.0-macos 已计算。 net8.0-tvos 已计算。 net8.0-windows 已计算。 |
此包无依赖项。