nunit-console可以列出测试装置中的所有测试名称吗? [英] Can nunit-console list all test names in a test fixture?

查看:85
本文介绍了nunit-console可以列出测试装置中的所有测试名称吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在它们运行之前报告它们,并可以选择通过shell脚本运行单个测试,而无需管理类别.我们有一些非托管代码,可能会使进程处于不良状态,有时很乐意在每次nunit-console运行时分别运行每个测试.

I'd like to report them before they're run, and have the option to run individual tests through shell scripts without managing categories. We have some unmanaged code which can leave the process in a bad state, and sometimes are happy to run each test individually per nunit-console run.

推荐答案

现在有--explore命令行选项,可用于列出所有测试用例,而无需运行测试.更具体地说

There is now the --explore command-line option that can be used to list all test cases without running tests. More specifically

nunit3-console.exe MyProject.dll --explore

有关更多信息: https://github.com/nunit/docs/wiki/Console-Command-Line#description

这篇关于nunit-console可以列出测试装置中的所有测试名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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