feat(tests): add tasks for running Python and frontend tests, including a combined test task
This commit is contained in:
14
Taskfile.yml
14
Taskfile.yml
@@ -75,6 +75,20 @@ tasks:
|
|||||||
desc: Run all linters
|
desc: Run all linters
|
||||||
deps: [lint-frontend, lint-python]
|
deps: [lint-frontend, lint-python]
|
||||||
|
|
||||||
|
test-python:
|
||||||
|
desc: Run Python tests using pytest
|
||||||
|
cmds:
|
||||||
|
- poetry run pytest tests/backend --cov=meshchatx/src/backend
|
||||||
|
|
||||||
|
test-frontend:
|
||||||
|
desc: Run frontend tests using vitest
|
||||||
|
cmds:
|
||||||
|
- "{{.NPM}} run test"
|
||||||
|
|
||||||
|
test:
|
||||||
|
desc: Run all tests
|
||||||
|
deps: [test-python, test-frontend]
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
desc: Compile Python code to check for syntax errors
|
desc: Compile Python code to check for syntax errors
|
||||||
cmds:
|
cmds:
|
||||||
|
|||||||
Reference in New Issue
Block a user