chore: add go-task
This commit is contained in:
parent
e2528bba4b
commit
51f3395f4c
1 changed files with 26 additions and 0 deletions
26
Taskfile.dist.yaml
Normal file
26
Taskfile.dist.yaml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
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)
|
Loading…
Add table
Add a link
Reference in a new issue