在 NUnit 3.0 之前,我使用下一个参数来包含要执行的测试类别:/include:"name"
现在在 NUnit 3.0 中,写作似乎有所不同 - 根据这个:https://github.com/nunit/dev/wiki/Command-Line-Options
我必须使用类似的东西:-include=name
但在我看来正确的选项应该是 --include=name
当我写其他参数时,如 --workers
同样的方式,他们工作。
问题是当我使用 --include
时参数我得到错误:"Invalid argument: --include=Selenium"
(Jenkins 控制台向我显示了这个错误)。
我究竟做错了什么?
最佳答案
我挖了北斗七星,在某处发现现在没有 --include
范围!
我们应该使用的是 :--where "cat==name"
猫 = 类别。如果我们想考虑优先级,我们会这样做:--where "cat==name && Priority==High"
关于nunit-3.0 - NUnit 3.0 控制台不适用于 "include"参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34511846/