m2_conduite_projet/Taskfile.dist.yaml

26 lines
592 B
YAML

version: 3
tasks:
test:scenario1:
desc: Run scenario 1 tests (workshops management)
cmds:
- task: services:start
- python ./tests/add_workshop.py
- defer: {task: services:stop}
test:scenario2:
desc: Run scenario 2 test (homepage)
cmds:
- task: services:start
- python ./tests/homepage.py
- defer: {task: services:stop}
services:start:
internal: true
cmds:
- |
selenium-server &
npm run start &
services:stop:
internal: true
cmds:
- |
kill $(pgrep java)
kill $(pgrep node)