diff --git a/Taskfile.dist.yaml b/Taskfile.dist.yaml new file mode 100644 index 0000000..7b97e14 --- /dev/null +++ b/Taskfile.dist.yaml @@ -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)