1

我遇到了一个奇怪的结果,最近使用 vstest.console.exe 运行的测试结果在我的某些测试中没有被执行,但计数器不会反映这些结果。

实际的“计数器”行是:

<Counters total="84" executed="78" passed="78" failed="0" error="0" timeout="0" aborted="0" inconclusive="0" passedButRunAborted="0" notRunnable="0" notExecuted="0" disconnected="0" warning="0" completed="0" inProgress="0" pending="0" />

如您所见,“总”计数器和“执行”计数器并不相同。在查看测试结果时,我发现那些缺失测试的结果是“未执行”

这是示例:

<UnitTestResult executionId="b2be72ea-9196-4910-88f8-999fd342fef7" testId="717d6c19-e8ba-bf3d-44c5-0fe541873ab5" testName="MyTest" computerName="MyComputer" duration="00:00:04.1010226" startTime="2017-07-26T11:24:00.5455072-04:00" endTime="2017-07-26T11:24:04.6392676-04:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="NotExecuted" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="b2be72ea-9196-4910-88f8-999fd342fef7">

在这里,我希望结果是:

total="84" executed="78" passed="78" notExecuted="6"
4

0 回答 0