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                
nuke :add-package dotnet-trx --version 0.4.5                

将测试结果以 TRX 格式美化和打印。

Demo

典型用法: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

并在自动拉取请求注释中查看结果,如:

PR comment

注意:此行为由存在 GITHUB_REF_NAMECI 环境变量的条件触发。

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

赞助商

Clarius Org Kirill Osenkov MFB Technologies, Inc. Stephen Shaw Torutek DRIVE.NET, Inc. Ashley Medway Keith Pickford Thomas Bolon Kori Francis Toni Wenzel Giorgi Dalakishvili Uno Platform Dan Siegel Reuben Swartz Jacob Foshee alternate text is missing from this package README image Eric Johnson Ix Technologies B.V. David JENNI Jonathan Oleg Kyrylchuk Charley Wu Jakob Tikjøb Andersen Seann Alexander Tino Hager Mark Seemann Ken Bonny Simon Cropp agileworks-eu sorahex Zheyu Shen Vezel ChilliCream 4OTC

赞助此项目  

了解更多关于 GitHub 赞助的信息

产品 兼容和额外的目标框架版本。
.NET net8.0 兼容。 net8.0-android 已计算。 net8.0-browser 已计算。 net8.0-ios 已计算。 net8.0-maccatalyst 已计算。 net8.0-macos 已计算。 net8.0-tvos 已计算。 net8.0-windows 已计算。
兼容的目标框架
包含的目标框架(在包中)
了解更多关于目标框架.NET标准

此包无依赖项。

版本 下载 上次更新
0.4.5 112 8/8/2024
0.4.4 57 7/31/2024
0.4.3 45 7/29/2024
0.4.2 40 7/29/2024
0.4.1 86 7/17/2024
0.4.0 83 7/15/2024
0.3.4 74 7/12/2024
0.3.3 219 7/7/2024
0.3.2 81 7/7/2024
0.3.1 76 7/7/2024
0.3.0 101 7/4/2024
0.2.0 81 7/3/2024
0.1.0 91 7/2/2024