Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Result should show more details (Suggestion) #1527

Closed
avikenjale opened this issue May 30, 2017 · 2 comments
Closed

Test Result should show more details (Suggestion) #1527

avikenjale opened this issue May 30, 2017 · 2 comments

Comments

@avikenjale
Copy link

Environment data

dotnet --info output:
.NET Command Line Tools (1.0.4)

Product Information:
Version: 1.0.4
Commit SHA-1 hash: af1e6684fd

Runtime Environment:
OS Name: Windows
OS Version: 6.1.7601
OS Platform: Windows
RID: win7-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.4

VS Code version:
1.12.2

C# Extension version:
1.10.0

Steps to reproduce

Run NUnit test using newly introduced feature, link above test method 'run test'

Expected behavior

Should show test results with more details, like what we see after running 'dotnet test' command:

NUnit Adapter 3.8.0.0: Test execution started
Running all tests in <<project_location_folder>>

NUnit3TestExecutor converted 1 of 1 NUnit test cases
NUnit Adapter 3.8.0.0: Test execution complete
Failed test_method_assert()
Error Message:
Shouldly.ShouldAssertException : 4
should be
2
but was not
Test Run Failed.
Stack Trace:
at Shouldly.ShouldlyCoreExtensions.AssertAwesomely[T](T actual, Func2 specifiedConstraint, Object originalActual, Object originalExpe cted, Func1 customMessage, String shouldlyMethod)
at Shouldly.ShouldBeTestExtensions.ShouldBe[T](T actual, T expected, Func`1 customMessage)
at Shouldly.ShouldBeTestExtensions.ShouldBe[T](T actual, T expected)
at webapi.test.Models.HazardTests.model_properties_should_not_change() in <<project_location_test_file>>

Total tests: 1. Passed: 0. Failed: 1. Skipped: 0.
Test execution time: 2.2615 Seconds

Actual behavior

NUnit Adapter 3.8.0.0: Test discovery starting
NUnit Adapter 3.8.0.0: Test discovery complete
NUnit Adapter 3.8.0.0: Test execution started
Running selected tests in <<Project_Location_Folder>>
NUnit3TestExecutor converted 1 of 1 NUnit test cases
NUnit Adapter 3.8.0.0: Test execution complete

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

@bernardbr
Copy link

It's an NUnit's issue, and it's already opened: nunit/nunit3-vs-adapter#329

@DustinCampbell
Copy link
Member

Thanks for the assist @bernardbr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants