Configure environment variables for different tools in jenkins

本文介绍如何在Jenkins中配置一系列自动化测试工具,包括OpenCover、NUnitConsole、VSTestConsole等,以实现.NET项目的自动化测试流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装以下的工具,并在Jenkins中的Manage Jenkins-->Configure System-->Global Properties-->Environment Variables

1.OpenCover

https://github.com/OpenCover/opencover

安装路径

"C:\Users\dev\AppData\Local\Apps\OpenCover\OpenCover.Console.exe"

 

 2.NUnitConsole

NUnit3Console

"C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe"

https://github.com/nunit/nunit-console

2.1 错误【3.8的版本有这个错误】

Errors and Failures

1) Error : 
Unable to acquire remote process agent
   at NUnit.Engine.Runners.ProcessRunner.CreateAgentAndRunner()
   at NUnit.Engine.Runners.ProcessRunner.RunTests(ITestEventListener listener, TestFilter filter)

 https://stackoverflow.com/questions/36854109/how-to-get-past-error-unable-to-acquire-remote-process-agent-when-using-the-nu

 Passing --inprocess option to nunit3-console.exe solved the problem for me.

   如果升级到3.9版本,需要将--inrocess去掉,否则会出现 File Type not supported的错误

 

3.VSTestConsole

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"

 

4.NUnit3TestAdapter

"D:\JENKINS_HOME\NUnit3TestAdapter.3.9.0\build\net35"

 

5.devenv.com

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.com"

 

6.NuGet

"D:\JENKINS_HOME\nuget.exe"

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值