Last active
January 20, 2017 16:57
-
-
Save tommck/970142d18230da95b38ea7bda042f872 to your computer and use it in GitHub Desktop.
VS Code Task to run "gulp test" and parse jasmine/karma output
This file contains hidden or 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": "gulp", | |
"isShellCommand": true, | |
"args": [ | |
"--no-color" | |
], | |
"tasks": [ | |
{ | |
"taskName": "build", | |
"args": [], | |
"isBuildCommand": true, | |
"isWatching": false, | |
"problemMatcher": [ | |
"$lessCompile", | |
"$tsc", | |
"$jshint" | |
] | |
}, | |
{ | |
"taskName": "test", | |
"args": [], | |
"isTestCommand": true, | |
"echoCommand": true, | |
"problemMatcher": { | |
"owner": "test", | |
"fileLocation": ["relative", "${workspaceRoot}"], | |
"pattern": [ | |
{ | |
"regexp": "(Expected.+\\.)", | |
"message": 1 | |
}, | |
{ | |
"regexp": "at.+\\s.(.*\\.js):(\\d+):(\\d+)", | |
"file": 1, | |
"line": 2, | |
"column": 3 | |
} | |
] | |
} | |
}, | |
{ | |
"taskName": "test-watch", | |
"args": [], | |
"isTestCommand": true, | |
"isWatching": true, | |
"echoCommand": true, | |
"problemMatcher": { | |
"owner": "test", | |
"fileLocation": ["relative", "${workspaceRoot}"], | |
"pattern": [ | |
{ | |
"regexp": "(Expected.+\\.)", | |
"message": 1 | |
}, | |
{ | |
"regexp": "at.+\\s.(.*\\.js):(\\d+):(\\d+)", | |
"file": 1, | |
"line": 2, | |
"column": 3 | |
} | |
], | |
"watching": { | |
"activeOnStart": true, | |
"beginsPattern": "Starting 'test'", | |
"endsPattern": "Finished 'test'" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Added a watcher task as well