Skip to content

"run test" code lens mstest doesn't output errors #1612

@jamesikanos

Description

@jamesikanos

Environment data

.NET Command Line Tools (1.0.3)

Product Information:
Version: 1.0.3
Commit SHA-1 hash: 37224c9917

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/1.0.3

VS Code version: Version 1.13.1 (1.13.1)
C# Extension version: 1.11.0

Steps to reproduce

Create an MSTest project with dotnet new mstest.
Create single [TestMethod] with Assert.Fail("Error Message");
Select code lens "run test" above method

Expected behavior

I expect to see "Error Message" in either the console window or the problems window.

Actual behavior

Console correctly displays that 1 test has failed but no error messages are available. Problem window is silent.

Actual Output:

Running test Banksy.Server.Tests.RegisterTests.BasicRegistration...

Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.

  Banksy.Server.Tests -> /git/Banksy.Server.Tests/bin/Debug/netcoreapp1.1/Banksy.Server.Tests.dll

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

Time Elapsed 00:00:01.93



Total tests: 1. Passed: 0. Failed: 1. Skipped: 0

Running test Banksy.Server.Tests.RegisterTests.BasicRegistration...

Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.

  Banksy.Server.Tests -> /git/Banksy.Server.Tests/bin/Debug/netcoreapp1.1/Banksy.Server.Tests.dll

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

Time Elapsed 00:00:00.96



Total tests: 1. Passed: 0. Failed: 1. Skipped: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions