Last active
October 16, 2018 12:47
-
-
Save aeinbu/ab73d85b00b0ea9dbbbe9e1031dc95ca to your computer and use it in GitHub Desktop.
Visual Studio Code task for running mocha tests with problem matcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
"command": "mocha", | |
"isShellCommand": true, | |
"showOutput": "silent", | |
"args": [ | |
"--reporter", | |
"tap", | |
"--colors" | |
], | |
"tasks": [ | |
{ | |
"taskName": "mocha", | |
"suppressTaskName": true, | |
"isTestCommand": true, | |
"showOutput": "silent", | |
"problemMatcher": { | |
"owner": "mocha", | |
"fileLocation": [ | |
"relative", | |
"${workspaceRoot}" | |
], | |
"pattern": [ | |
{ | |
"regexp": "^not\\sok\\s\\d+\\s(.*)$" | |
}, | |
{ | |
"regexp": "\\s+(.*)$", | |
"message": 1 | |
}, | |
{ | |
"regexp": "\\s+at\\s(.*)\\s\\((.*):(\\d+):(\\d+)\\)", | |
"file": 2, | |
"line": 3, | |
"column": 4 | |
} | |
] | |
} | |
} | |
] | |
} |
rsxdalv
commented
Jul 19, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment