DavidSchuldenfrei / gtest-adapter

Other
18 stars 9 forks source link

Tests don't appear (1.6.1) #32

Closed leonardo-faria closed 5 years ago

leonardo-faria commented 5 years ago

Using version 1.6.1 of this extension. After selecting any tests (after pressing "Switch test configuration" and selecting 1 or more tests), no tests appear in "Google Tests" window. I'm using 1.8.0 of google test.

At the moment switching from 1.6.1 to 1.6.0 solves the issue

DavidSchuldenfrei commented 5 years ago

@leonardo-faria Hi, Thanks for reporting this. I need further information to reproduce/fix this. Does the issue occur when you upgrade to 1.6.1 without changing the configuration? Could you send me a copy of your configuration (settings.json and launch.json) from the .vscode folder.

Junch commented 5 years ago

I have the same issue as @leonardo-faria said. It can be reproduced as below.

  1. Click the "Switch test configuration"
  2. Uncheck the current selection and click OK. The tests will disappear from the "Google Tests" windows.
  3. Click the "Switch test configuration" again and check the previous selection. No tests will be added to the "Google Tests" windows.
leonardo-faria commented 5 years ago

@DavidSchuldenfrei, yes just updated the extension.

I upgraded to 1.6.1 for this test:

  1. Have 2 test targets
  2. Select targets test1an leave test2 unselected in the "Switch test configuration"
  3. The settings.json becomes:
"gtest-adapter.supportLocation": false,
"gtest-adapter.showCodeLens": false,
"gtest-adapter.debugConfig": [
    {
        "label": "test1"
    }
],

There is a squiggly green line warning for the entire text inside the [...] with the error message:

Incorrect type. Expected "string".

DavidSchuldenfrei commented 5 years ago

@leonardo-faria, @Junch Thanks, I just fixed this. Please try upgrading to 1.6.2, and let me know if this fixes it David

leonardo-faria commented 5 years ago

It's working now, thank you for the quick fix @DavidSchuldenfrei :+1: