.Net Core xUnit Test-Runner输出中目标的用途是什么,以及如何使用它们?

时间:2016-09-13 19:08:41

标签: .net-core xunit

我正在使用.Net Core构建Web API。我正在构建并运行我的单元测试。当我运行我的测试时,我会得到这样的结果:

The-Monarch:MyAwesomeService.Tests homr$ dotnet test
Project MyAwesomeService (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
Project MyAwesomeService.Tests (.NETCoreApp,Version=v1.0) will be compiled because inputs were modified
Compiling MyAwesomeService.Tests for .NETCoreApp,Version=v1.0

Compilation succeeded.
    0 Warning(s)
    0 Error(s)

Time elapsed 00:00:01.2618204


xUnit.net .NET CLI test runner (64-bit osx.10.11-x64)
  Discovering: MyAwesomeService.Tests
  Discovered:  MyAwesomeService.Tests
  Starting:    MyAwesomeService.Tests
  Finished:    MyAwesomeService.Tests
=== TEST EXECUTION SUMMARY ===
   MyAwesomeService.Tests  Total: 20, Errors: 0, Failed: 0, Skipped: 0, Time: 3.522s
SUMMARY: Total: 1 targets, Passed: 1, Failed: 0.
The-Monarch:MyAwesomeService.Tests homr$

我很好奇SUMMARY: Total: 1 targets, Passed: 1, Failed: 0.这句话。到目前为止,我从未见过总数高于“1”的地方。如何在单个输出中获得多个“测试目标”,目的是什么?

0 个答案:

没有答案