Created
March 5, 2019 22:36
-
-
Save coddingtonbear/5268e76c2d7e8b0d3a5778d2587f5cdd to your computer and use it in GitHub Desktop.
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
{ | |
// See https://go.microsoft.com/fwlink/?linkid=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Run all tests (mark problems)", | |
"type": "shell", | |
"group": { | |
"kind": "test", | |
"isDefault": true | |
}, | |
"presentation": { | |
"reveal": "never" | |
}, | |
"command": "docker-compose --file=/home/acoddington/Documents/Projects/webenv/docker-compose.yml exec airship python manage.py vscode_test --parallelism=4 airship", | |
"problemMatcher": [ | |
{ | |
"owner": "airship", | |
"fileLocation": ["relative", "${workspaceRoot}"], | |
"pattern": { | |
"regexp": "^\\[([^ ]+)\\] ([^:]+):(\\d+) ([^ ]+) (.*) \"([^\"]+)\"$", | |
"file": 2, | |
"line": 3, | |
"severity": 1, | |
"message": 6 | |
} | |
} | |
] | |
}, | |
{ | |
"label": "Run all tests sequentially (mark problems)", | |
"type": "shell", | |
"group": { | |
"kind": "test", | |
"isDefault": true | |
}, | |
"presentation": { | |
"reveal": "never" | |
}, | |
"command": "docker-compose --file=/home/acoddington/Documents/Projects/webenv/docker-compose.yml exec airship python manage.py vscode_test --parallelism=1 airship", | |
"problemMatcher": [ | |
{ | |
"owner": "airship", | |
"fileLocation": ["relative", "${workspaceRoot}"], | |
"pattern": { | |
"regexp": "^\\[([^ ]+)\\] ([^:]+):(\\d+) ([^ ]+) (.*) \"([^\"]+)\"$", | |
"file": 2, | |
"line": 3, | |
"severity": 1, | |
"message": 6 | |
} | |
} | |
] | |
}, | |
{ | |
"label": "Run tests in this class (mark problems)", | |
"type": "shell", | |
"command": "docker-compose --file=/home/acoddington/Documents/Projects/webenv/docker-compose.yml exec airship python manage.py vscode_test --class-at-line=${lineNumber} --module-at-path=${relativeFile}", | |
"problemMatcher": [ | |
{ | |
"owner": "airship", | |
"fileLocation": ["relative", "${workspaceRoot}"], | |
"pattern": { | |
"regexp": "^\\[([^ ]+)\\] ([^:]+):(\\d+) ([^ ]+) (.*) \"([^\"]+)\"$", | |
"file": 2, | |
"line": 3, | |
"severity": 1, | |
"message": 6 | |
} | |
} | |
] | |
}, | |
{ | |
"label": "Run tests in this module (mark problems)", | |
"type": "shell", | |
"command": "docker-compose --file=/home/acoddington/Documents/Projects/webenv/docker-compose.yml exec airship python manage.py vscode_test --module-at-path=${relativeFile}", | |
"problemMatcher": [ | |
{ | |
"owner": "airship", | |
"fileLocation": ["relative", "${workspaceRoot}"], | |
"pattern": { | |
"regexp": "^\\[([^ ]+)\\] ([^:]+):(\\d+) ([^ ]+) (.*) \"([^\"]+)\"$", | |
"file": 2, | |
"line": 3, | |
"severity": 1, | |
"message": 6 | |
} | |
} | |
] | |
}, | |
{ | |
"label": "Run tests in this module sequentially (mark problems)", | |
"type": "shell", | |
"command": "docker-compose --file=/home/acoddington/Documents/Projects/webenv/docker-compose.yml exec airship python manage.py vscode_test --module-at-path=${relativeFile} --parallelism=1", | |
"problemMatcher": [ | |
{ | |
"owner": "airship", | |
"fileLocation": ["relative", "${workspaceRoot}"], | |
"pattern": { | |
"regexp": "^\\[([^ ]+)\\] ([^:]+):(\\d+) ([^ ]+) (.*) \"([^\"]+)\"$", | |
"file": 2, | |
"line": 3, | |
"severity": 1, | |
"message": 6 | |
} | |
} | |
] | |
}, | |
{ | |
"label": "Run tests in this class", | |
"type": "shell", | |
"command": "docker-compose --file=/home/acoddington/Documents/Projects/webenv/docker-compose.yml exec airship python manage.py vscode_test --class-at-line=${lineNumber} --module-at-path=${relativeFile}", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "Run tests in this module", | |
"type": "shell", | |
"command": "docker-compose --file=/home/acoddington/Documents/Projects/webenv/docker-compose.yml exec airship python manage.py vscode_test --module-at-path=${relativeFile}", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "Run this test", | |
"type": "shell", | |
"command": "docker-compose --file=/home/acoddington/Documents/Projects/webenv/docker-compose.yml exec airship python manage.py vscode_test --parallelism=1 --method-at-line=${lineNumber} --module-at-path=${relativeFile}", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "Run this test (py3)", | |
"type": "shell", | |
"command": "docker-compose --file=/home/acoddington/Documents/Projects/webenv/docker-compose.yml run --rm --publish=5678:5678 airship-py3 python manage.py vscode_test --parallelism=1 --method-at-line=${lineNumber} --module-at-path=${relativeFile}", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "Run javascript tests in this module", | |
"type": "shell", | |
"command": "npm run integration-tests -- ../${relativeFile}", | |
"options": { | |
"cwd": "ui" | |
}, | |
"problemMatcher": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment