File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 207207 },
208208 "type" : " shell"
209209 },
210- {
211- "label" : " Run Coverage" ,
212- "type" : " shell" ,
213- "command" : " cmd" ,
214- "args" : [
215- " /c" ,
216- " run_coverage.bat" ,
217- ],
218- "options" : {
219- "cwd" : " scripts" ,
220- "env" : {
221- "UNATTENDED" : " 1" ,
222- "PYTHON" : " ${command:python.interpreterPath}" ,
223- }
224- },
225- "group" : {
226- "kind" : " build" ,
227- "isDefault" : true
228- },
229- "presentation" : {
230- "echo" : true ,
231- "reveal" : " always" ,
232- "focus" : false ,
233- "panel" : " dedicated" ,
234- "showReuseMessage" : true ,
235- "clear" : true
236- }
237- },
238210 {
239211 "label" : " 🧹 Clean Up" ,
240212 "type" : " shell" ,
440412 ]
441413 },
442414 {
443- "label" : " 📊 Display Coverage " ,
415+ "label" : " 🧪 Run coverage tests " ,
444416 "type" : " shell" ,
445- "command" : " cmd " ,
417+ "command" : " ${command:python.interpreterPath} " ,
446418 "args" : [
447- " /c" ,
448- " display_cov.bat" ,
419+ " -m" ,
420+ " coverage" ,
421+ " run" ,
422+ " -m" ,
423+ " pytest" ,
424+ " plotpy"
449425 ],
450426 "options" : {
451- "cwd" : " scripts" ,
427+ "cwd" : " ${workspaceFolder}" ,
428+ "env" : {
429+ "COVERAGE_PROCESS_START" : " ${workspaceFolder}/.coveragerc" ,
430+ },
431+ "statusbar" : {
432+ "hide" : true
433+ }
452434 },
453435 "group" : {
454- "kind" : " build " ,
436+ "kind" : " test " ,
455437 "isDefault" : true
456438 },
457439 "presentation" : {
458- "echo" : true ,
459- "reveal" : " never" ,
460- "focus" : false ,
461- "panel" : " shared" ,
462- "showReuseMessage" : false ,
463- "clear" : true
464- }
440+ "panel" : " dedicated"
441+ },
442+ "problemMatcher" : []
443+ },
444+ {
445+ "label" : " 📊 Coverage full" ,
446+ "type" : " shell" ,
447+ "windows" : {
448+ "command" : " ${command:python.interpreterPath} -m coverage combine && ${command:python.interpreterPath} -m coverage html && start htmlcov\\ index.html"
449+ },
450+ "linux" : {
451+ "command" : " ${command:python.interpreterPath} -m coverage combine && ${command:python.interpreterPath} -m coverage html && xdg-open htmlcov/index.html"
452+ },
453+ "osx" : {
454+ "command" : " ${command:python.interpreterPath} -m coverage combine && ${command:python.interpreterPath} -m coverage html && open htmlcov/index.html"
455+ },
456+ "options" : {
457+ "cwd" : " ${workspaceFolder}" ,
458+ "env" : {
459+ "COVERAGE_PROCESS_START" : " ${workspaceFolder}/.coveragerc"
460+ }
461+ },
462+ "presentation" : {
463+ "panel" : " dedicated"
464+ },
465+ "problemMatcher" : [],
466+ "dependsOrder" : " sequence" ,
467+ "dependsOn" : [
468+ " 🧪 Run coverage tests" ,
469+ ],
465470 },
466471 ]
467472}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments