Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
xUnit JSON reporter test output example
{"message":"testCollectionStarting","flowId":"ef88d720e40b440e9ef79461eaea4e91","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestStarting","collectionId":"151794a8-0e29-4e6d-a464-d215967eeb22"}
{"message":"testCollectionStarting","flowId":"d372efdc4f0c4dbf85dd3ad91ad07638","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestCollectionStarting","collectionId":"ca68584f-b31f-4ef4-a61a-9802a1a2f966"}
{"message":"testCollectionStarting","flowId":"a9c9647c2cca435abe99cc33ea503639","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestSkipped","collectionId":"55fa344e-cee5-4198-a6bd-204342559bb4"}
{"message":"testCollectionStarting","flowId":"3262b3fa6d4d437a88440c239267150c","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestFailed","collectionId":"29339a40-7b95-4ce2-8e36-e55f921c579c"}
{"message":"testStarting","flowId":"3262b3fa6d4d437a88440c239267150c","testName":"TeamCityReporterMessageHandlerTests+OnMessage_ITestFailed.LogsTestNameWithExceptionAndStackTraceAndOutput"}
{"message":"testStarting","flowId":"d372efdc4f0c4dbf85dd3ad91ad07638","testName":"TeamCityReporterMessageHandlerTests+OnMessage_ITestCollectionStarting.LogsMessage"}
{"message":"testStarting","flowId":"a9c9647c2cca435abe99cc33ea503639","testName":"TeamCityReporterMessageHandlerTests+OnMessage_ITestSkipped.LogsTestNameAsWarning"}
{"message":"testStarting","flowId":"ef88d720e40b440e9ef79461eaea4e91","testName":"TeamCityReporterMessageHandlerTests+OnMessage_ITestStarting.LogsTestName"}
{"message":"testPassed","flowId":"d372efdc4f0c4dbf85dd3ad91ad07638","executionTime":0.4873581,"testStdOut":""}
{"message":"testPassed","flowId":"3262b3fa6d4d437a88440c239267150c","executionTime":0.4890292,"testStdOut":""}
{"message":"testPassed","flowId":"a9c9647c2cca435abe99cc33ea503639","executionTime":0.4890317,"testStdOut":""}
{"message":"testPassed","flowId":"ef88d720e40b440e9ef79461eaea4e91","executionTime":0.4888232,"testStdOut":""}
{"message":"testCollectionFinished","flowId":"d372efdc4f0c4dbf85dd3ad91ad07638","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestCollectionStarting","collectionId":"ca68584f-b31f-4ef4-a61a-9802a1a2f966","executionTime":0.4873581,"testsFailed":0,"testsRun":1,"testsSkipped":0}
{"message":"testCollectionFinished","flowId":"a9c9647c2cca435abe99cc33ea503639","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestSkipped","collectionId":"55fa344e-cee5-4198-a6bd-204342559bb4","executionTime":0.4890317,"testsFailed":0,"testsRun":1,"testsSkipped":0}
{"message":"testCollectionFinished","flowId":"ef88d720e40b440e9ef79461eaea4e91","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestStarting","collectionId":"151794a8-0e29-4e6d-a464-d215967eeb22","executionTime":0.4888232,"testsFailed":0,"testsRun":1,"testsSkipped":0}
{"message":"testCollectionStarting","flowId":"fa28a3cf56424667b221387034d2c4fe","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestCollectionFinished","collectionId":"54abdcf8-d650-46f4-9262-93ba139c5b24"}
{"message":"testCollectionStarting","flowId":"aa82270b32a346e385da308e76d2d91d","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestPassed","collectionId":"364ad670-940b-49e9-9e09-d16f650844e4"}
{"message":"testCollectionStarting","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+FailureMessages","collectionId":"4db570b8-fbb2-4c1b-b300-a270fca3cfe8"}
{"message":"testStarting","flowId":"fa28a3cf56424667b221387034d2c4fe","testName":"TeamCityReporterMessageHandlerTests+OnMessage_ITestCollectionFinished.LogsMessage"}
{"message":"testStarting","flowId":"aa82270b32a346e385da308e76d2d91d","testName":"TeamCityReporterMessageHandlerTests+OnMessage_ITestPassed.LogsTestNameAndOutput"}
{"message":"testCollectionFinished","flowId":"3262b3fa6d4d437a88440c239267150c","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestFailed","collectionId":"29339a40-7b95-4ce2-8e36-e55f921c579c","executionTime":0.4890292,"testsFailed":0,"testsRun":1,"testsSkipped":0}
{"message":"testPassed","flowId":"fa28a3cf56424667b221387034d2c4fe","executionTime":0.010722,"testStdOut":""}
{"message":"testCollectionFinished","flowId":"fa28a3cf56424667b221387034d2c4fe","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestCollectionFinished","collectionId":"54abdcf8-d650-46f4-9262-93ba139c5b24","executionTime":0.010722,"testsFailed":0,"testsRun":1,"testsSkipped":0}
{"message":"testPassed","flowId":"aa82270b32a346e385da308e76d2d91d","executionTime":0.0154398,"testStdOut":""}
{"message":"testCollectionFinished","flowId":"aa82270b32a346e385da308e76d2d91d","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+OnMessage_ITestPassed","collectionId":"364ad670-940b-49e9-9e09-d16f650844e4","executionTime":0.0154398,"testsFailed":0,"testsRun":1,"testsSkipped":0}
{"message":"testStarting","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","testName":"TeamCityReporterMessageHandlerTests+FailureMessages.LogsMessage(message: IErrorMessage, messageType: \"FATAL ERROR\")"}
{"message":"testPassed","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","executionTime":0.0015533,"testStdOut":""}
{"message":"testStarting","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","testName":"TeamCityReporterMessageHandlerTests+FailureMessages.LogsMessage(message: ITestAssemblyCleanupFailure, messageType: \"Test Assembly Cleanup Failure (C:\\Foo\\bar.dll)\")"}
{"message":"testPassed","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","executionTime":0.0009503,"testStdOut":""}
{"message":"testStarting","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","testName":"TeamCityReporterMessageHandlerTests+FailureMessages.LogsMessage(message: ITestCollectionCleanupFailure, messageType: \"Test Collection Cleanup Failure (FooBar)\")"}
{"message":"testPassed","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","executionTime":0.0008733,"testStdOut":""}
{"message":"testStarting","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","testName":"TeamCityReporterMessageHandlerTests+FailureMessages.LogsMessage(message: ITestClassCleanupFailure, messageType: \"Test Class Cleanup Failure (MyType)\")"}
{"message":"testPassed","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","executionTime":0.0009416,"testStdOut":""}
{"message":"testStarting","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","testName":"TeamCityReporterMessageHandlerTests+FailureMessages.LogsMessage(message: ITestMethodCleanupFailure, messageType: \"Test Method Cleanup Failure (MyMethod)\")"}
{"message":"testPassed","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","executionTime":0.0009644,"testStdOut":""}
{"message":"testStarting","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","testName":"TeamCityReporterMessageHandlerTests+FailureMessages.LogsMessage(message: ITestCaseCleanupFailure, messageType: \"Test Case Cleanup Failure (MyTestCase)\")"}
{"message":"testPassed","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","executionTime":0.0009057,"testStdOut":""}
{"message":"testStarting","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","testName":"TeamCityReporterMessageHandlerTests+FailureMessages.LogsMessage(message: ITestCleanupFailure, messageType: \"Test Cleanup Failure (MyTest)\")"}
{"message":"testPassed","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","executionTime":0.0007765,"testStdOut":""}
{"message":"testCollectionFinished","flowId":"a07994201bbc4c2e8d2b2ead8cb19fe0","assembly":"test.xunit.runner.reporters, Version=99.99.99.0, Culture=neutral, PublicKeyToken=null","collectionName":"Test collection for TeamCityReporterMessageHandlerTests+FailureMessages","collectionId":"4db570b8-fbb2-4c1b-b300-a270fca3cfe8","executionTime":0.0069651,"testsFailed":0,"testsRun":7,"testsSkipped":0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment