通过命令行将参数传递给NUnit [英] Pass parameters via the command line to NUnit

查看:115
本文介绍了通过命令行将参数传递给NUnit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过命令行将值传递给NUnit测试?

Is it somehow possible to pass values to NUnit tests via the command line?

我的测试使用特定的URL.我在不同的URL上有不同的代码实例,并想通过命令行指定URL.文件App.config是不可选项,因为我想通过批处理文件针对不同的URL运行测试.

My tests use a certain URL. I have different instances of my code at different URLs and would like to specify the URL via the command line. File App.config is not an option, because I want to run the tests for different URLs via a batch file.

推荐答案

目前似乎没有解决方案.最好的选择是使用NUnit项目文件,在那里修改设置,然后将解决方案文件传递给运行程序.

There seems to be no solution at the moment. The best option is to use NUnit project files, modify settings there and pass the solution file to the runner.

这篇关于通过命令行将参数传递给NUnit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆