我想从这样的控制台运行测试(在任何目录中,DLL 文件可以针对不同的 .NET 版本):
$ nunit3-console test.dll
我用谷歌搜索了很多,但找不到如何设置它。
官方教程没什么用处,完全是零。跟随它让我无处可去:https://github.com/nunit/docs/wiki/Installation https://github.com/nunit/docs/wiki/Installation
很难找到,因为有很多过时的文档,无论是 NUnit2 还是 NUnit3。
Steps:
- 官方 NUnit3 控制台安装程序位于此处:https://github.com/nunit/nunit-console/releases https://github.com/nunit/nunit-console/releases(路径与文档中的路径不同)
- 下载
NUnit.Console-*.msi
打包并安装
- 添加到系统
PATH
变量这个:C:\Program Files (x86)\NUnit.org\nunit-console
- 打开命令行
-
Type:
$ nunit3-console test.dll
// 要并行运行多个测试程序集,请参阅: https://stackoverflow.com/a/45486444/1453525 https://stackoverflow.com/a/45486444/1453525
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)