2

I am using Nunit results for managerial view of all the tests. After reading nunit doc it says it automatically update the results xml file after running the tests. But In my case it keep showing me the old results in index file where as updated reults in actual file. Any idea how can I update the index file according to the latest results.

4

1 回答 1

2

根据 NUnit-Console 2.4.8命令行文档,xml 输出默认写入工作目录中的 TestResult.xml。您可以使用 /xml 命令行选项来指定不同的文件名。例如:

nunit-console /xml:console-test.xml nunit.tests.dll

我的猜测是,要么您使用 /xml 标志指定文件名,但在 TestResult.xml 中寻找更新的结果是徒劳的,或者您没有使用 /xml 标志并徒劳地寻找具有其他名称的文件中的更新结果。大概是前者。

于 2009-03-13T04:47:54.593 回答