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 explorer doesn't show suite correctly #2293

Open
centreboard opened this issue Oct 1, 2020 · 0 comments
Open

Test explorer doesn't show suite correctly #2293

centreboard opened this issue Oct 1, 2020 · 0 comments

Comments

@centreboard
Copy link

centreboard commented Oct 1, 2020

Expected Behavior

Javascript tests are displayed in VS Test Explorer by Project > File > Suite > Test

Actual Behavior

The tests output shows the details of file::suite::test

Creating Test Case:tests\FormatServiceTests.js::FormatService - format()::date
Creating Test Case:tests\XAxisTests.js::global::XAxisService.axis() - Index Values

But the test explorer seems to split on the last . and shows js instead of FormatService - format()
and XAxisService > axis() - Index Values instead of global > XAxisService.axis() - Index Values

image
image

These examples are in Jest (26.4.2), but I've seen the same issue trying Jasmine.

FormatServiceTests is using

describe("FormatService - format()", () => {
    test("date", () => {
        ...
    });
});

while
XAxisTests is a top level test

test("XAxisService.axis() - Index Values", () => {
    ...
});
  • NTVS Version: 1.5.20902.1 Commit Hash:b474efcb6f92db52a8f8e2e6a8cb9648476885cc
  • Visual Studio Version: 16.8.0 Preview 3.2
  • Node.js Version: 10.15.0

Steps to reproduce

  1. Create a .netstandard project following https://docs.microsoft.com/en-us/visualstudio/javascript/unit-testing-javascript-with-visual-studio?view=vs-2019#unit-test-net-core-and-net-standard
  2. Add test files into the tests folder and rebuild the project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant