Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Karma Problem MatcherNew to Visual Studio Code? Get it now.
Karma Problem Matcher

Karma Problem Matcher

rctay

|
357,033 installs
| (1) | Free
Capture errors from Karma tests running in Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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:

  • Karma logo by Isaac Durazo.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft