NUnit 3.0。
我在我的应用程序中使用这样的代码进行测试运行:
string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
string[] nunitArgs = new List<string>
{
// for details of options see http://www.nunit.com/index.php?p=nunitliteOptions&r=3.0
"--verbose",
"--work=" + directoryName // save TestResults.xml to the build folder
}.ToArray();
new NUnitLite.Runner.TextUI().Execute(nunitArgs);
我得到XML
格式的输出报告,但我需要HTML
. 在这里我看到了 - 只能XML
用作输出报告格式。也许我不正确地理解了文档?我可以为这个 XML 编写 XSLT,但只有当我确定获得 NUnit 不可能的 HTML 结果时我才会这样做。