Skip to content

rctay/vscode-karma-problem-matcher

Repository files navigation

VS Code Karma Problem Matcher

license Build Status

Description

Capture errors from Karma tests running in Visual Studio Code.

screenshot

Usage

After installing this extension, in the "problemMatcher" field in tasks.json, specify "$karma-jasmine2" and "isBackground": true.

Jasmine 2 is installed by default by Angular; if you have upgraded to Jasmine 3, specify "$karma-jasmine3" instead.

For example:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Start Live Unit Tests",
            "type": "npm",
            "script": "test",
            "group": "test",
            "isBackground": true,
            "problemMatcher": "$karma-jasmine2"
        }
    ]
}

Thanks:

Enjoy!

About

Capture errors from Karma tests running in Visual Studio Code

Resources

License

Stars

Watchers

Forks

Packages

No packages published