In Visual Studio, you can easily copy the results of unit tests, like this:

Visual Studio Test Explorer test result copy

The result has this format:

Result52 Name:  EncodingTest
Result52 Outcome:   Passed
Result52 Duration:  0:00:23.51
Result52 StackTrace:
Result52 Message:
Result52 StandardOutput:    Blabla
Result52 StandardError:

Result53 Name:  FilenameValidity
Result53 Outcome:   Failed
Result53 Duration:  0:00:00.016
Result53 StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
Result53 Message:
Result53 StandardOutput:
Result53 StandardError:

My goal is to see the difference between two different executions of the unit tests, for instance to compare two branches or two commits. Which tests started failing (or being skipped), which tests started passing.

The result should be something like:

Passing in A but not B:


Passing in B but not A:


The unit tests whose result has not changed (still passing, or still failing, or still skipped) should not be shown.

One of the difficulties is that copying as seen in the screenshot above lists the tests in a different order.

Any OS/budget.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.