문제

I have big assembly containing large number of tests. These tests are grouped under different namespaces. I tried running the test cases for a specific namespace from the nunit-console but no tests are run. This happens only for this assembly. It works in a sample test assembly i created for testing this.

What may be the reason? Is there any limitation?

The command line command i used is below

nunit-console.exe /noshadow /nothread /run:namespace Absolute_path_of_the_dll

도움이 되었습니까?

해결책

Based on the documentation, I'd expect you to use the /fixture argument:

The name specified after the /fixture option may be that of a TestFixture class, a legacy suite (using the Suite property ) or a namespace. If a namespace is given, then all fixtures under that namespace are run. This option may be used with Visual Studio or NUnit projects as well.

So

nunit-console /noshadow /nothread /fixture:Foo.Bar.Baz PathToAssembly.dll
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top