| 1 | { |
| 2 | "version": "2.0.0", |
| 3 | "tasks": [ |
| 4 | { |
| 5 | "label": "Pytest", |
| 6 | "type": "shell", |
| 7 | "command": "pytest", |
| 8 | "dependsOn": ["Install all Test Requirements"], |
| 9 | "group": { |
| 10 | "kind": "test", |
| 11 | "isDefault": true |
| 12 | }, |
| 13 | "presentation": { |
| 14 | "reveal": "always", |
| 15 | "panel": "new" |
| 16 | }, |
| 17 | "problemMatcher": [] |
| 18 | }, |
| 19 | { |
| 20 | "label": "Flake8", |
| 21 | "type": "shell", |
| 22 | "command": "flake8 --statistics --show-source --count --select=E9,F63,F7,F82 --max-complexity=10 --max-line-length=127", |
| 23 | "dependsOn": ["Install all Test Requirements"], |
| 24 | "group": { |
| 25 | "kind": "test", |
| 26 | "isDefault": true |
| 27 | }, |
| 28 | "presentation": { |
| 29 | "reveal": "always", |
| 30 | "panel": "new" |
| 31 | }, |
| 32 | "problemMatcher": [] |
| 33 | }, |
| 34 | { |
| 35 | "label": "Pylint", |
| 36 | "type": "shell", |
| 37 | "command": "python3.10 -m pylint flux_led", |
| 38 | "group": { |
| 39 | "kind": "test", |
| 40 | "isDefault": true |
| 41 | }, |
| 42 | "presentation": { |
| 43 | "reveal": "always", |
| 44 | "panel": "new" |
| 45 | }, |
| 46 | "problemMatcher": [] |
| 47 | }, |
| 48 | { |
| 49 | "label": "Code Coverage", |
| 50 | "detail": "Generate code coverage report", |
| 51 | "type": "shell", |
| 52 | "command": "pytest --cov=flux_led --cov-report term-missing", |
| 53 | "group": { |
| 54 | "kind": "test", |
| 55 | "isDefault": true |
| 56 | }, |
| 57 | "presentation": { |
| 58 | "reveal": "always", |
| 59 | "panel": "new" |
| 60 | }, |
| 61 | "problemMatcher": [] |
| 62 | }, |
| 63 | { |
| 64 | "label": "Install all Test Requirements", |
| 65 | "type": "shell", |
| 66 | "command": "pip3 install -r requirements_test.txt", |
| 67 | "group": { |
| 68 | "kind": "build", |
| 69 | "isDefault": true |
| 70 | }, |
| 71 | "presentation": { |
| 72 | "reveal": "always", |
| 73 | "panel": "new" |
| 74 | }, |
| 75 | "problemMatcher": [] |
| 76 | }, |
| 77 | { |
| 78 | "label": "Install all Requirements", |
| 79 | "type": "shell", |
| 80 | "command": "pip3 install -r requirements.txt", |
| 81 | "group": { |
| 82 | "kind": "build", |
| 83 | "isDefault": true |
| 84 | }, |
| 85 | "presentation": { |
| 86 | "reveal": "always", |
| 87 | "panel": "new" |
| 88 | }, |
| 89 | "problemMatcher": [] |
| 90 | } |
| 91 | ] |
| 92 | } |