DavidSchuldenfrei / gtest-adapter

Other
18 stars 9 forks source link

gtest-adapter.refreshAfterBuild doesn't work #18

Closed ftrofin closed 6 years ago

ftrofin commented 6 years ago

Although I have gtest-adapter.refreshAfterBuild set to true (default), after I build, the test panel is not automatically refreshed. I am using "Run Build Task" (Shift + Cmd +B) that invokes the default build task. If I click the "refresh" button in the test panel then I get the list of tests populated in the panel.

Environment: MacOS 10.13.6 VS Code Version 1.28.1 (1.28.1) GoogleTest Adapter version 1.2.4 Latest gtest version (1.8.1)

DavidSchuldenfrei commented 6 years ago

@ftrofin What is the name of the build task?

ftrofin commented 6 years ago

Hi David, The name is "Build unittester Debug" and here is how the entry looks in tasks.json:

       {
            "label": "Build unittester Debug",
            "type": "shell",
            "command": "xcodebuild -project ${workspaceRoot}/makeTests.mp.xcodeproj -scheme unittester.Debug build |xcpretty",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []
        },
DavidSchuldenfrei commented 6 years ago

My code assumed the name of the task to be build. Serves me right for being lazy and not checking for the default task. I will try to have a fix out in a couple of days

DavidSchuldenfrei commented 6 years ago

This should be fixed with v 1.3.1 If you still have problems , please open a new issue.