运行 nunit-console 和文本文件中的测试列表是否需要任何特定结构?

Is there any particular structure needed to run nunit-console with a list of tests in a textfile?

我成功地 运行 所有测试:

nunit-console bin\Debug\SeleniumAutomated.dll

然而,当我运行:

nunit-console /runlist:textFile.txt bin\Debug\SeleniumAutomated.dll

这导致 0 个测试 运行。所以,我想知道文本文件本身是否需要任何特定的结构。我试过:

TestA,
TestB,
TestC

还有:

TestA
TestB
TestC

还有:

FullNameTestA
FullNameTestB
FullNameTestC

到目前为止运气不好。此外,我想从批处理文件中 运行 这个,如果这可能有所作为的话。引用自 http://www.nunit.org/index.php?p=consoleCommandLine&r=2.6.4 "The file 'testlist.txt' should contain the full name of each test, listed one per line."

我的文件名来源是 C#:

TestContext c = TestContext.CurrentContext;   
// c.Test.Name for the individual test name
// c.Test.FullName for the fullName

此外,文本文件中没有任何地方看起来不合适。 Testnames/fullnames 正如我所期望的那样(这里可能是错误的)。

事实证明,nunit-console 对 spaces 很挑剔。每行后面都有一个 space 。通过删除 space 并使用全名,它按预期工作。 因此,对于遇到此困难的任何其他人,请务必不要使用任何形式的标点符号。仅使用全名 - 每行一个。

FULLNAMEA
FULLNAMEB
FULLNAMEC
...