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

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

问题描述

是否有可能通过命令行传递值到NUnit测试?我的测试使用某个URL。我有不同的实例我的代码在不同的URL,并希望通过命令行指定的URL。 App.config不是一个选项,因为我想通过批处理文件来运行不同URL的测试。

Is it somehow possible to pass values to NUnit tests via command line? My tests use a certain URL. I have different instances of my code at different URLs and would like to specify the URL via command line. 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. Best option is to use NUnit project files, modify settings there and pass the solution file to the runner.

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

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