Skip to content

Commit 85d7fc7

Browse files
authored
Merge pull request #24 from grumBit/Add-run-tests-on-save-to-workspace
Add run tests on save to workspace
2 parents 17ed51b + fca7c02 commit 85d7fc7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

aws_cron_expression_validator.code-workspace

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
}
66
],
77
"settings": {
8-
"python.linting.flake8Enabled": false
8+
"python.linting.flake8Enabled": false,
9+
"runItOn": {
10+
"commands": [
11+
{
12+
"match": "\\.py$",
13+
"isAsync": true,
14+
"cmd": "[[ ${fileDirname} == ${workspaceRoot}/src/* ]] && pytest `echo ${fileDirname}| sed s'|/src/|/tests/|'`; [[ ${file} == ${workspaceRoot}/tests/* ]] && pytest ${file}"
15+
}
16+
]
17+
}
918
}
1019
}

0 commit comments

Comments
 (0)