-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 1010 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: dev-setup test-backend test-core test-system test-unit test-emacs test-emacs-unit test
BACKEND ?= all
dev-setup:
python -m venv .venv
.venv/bin/pip install -e ./core
.venv/bin/pip install -e ./cli
.venv/bin/pip install -e ./server
.venv/bin/pip install -r requirements-test.txt
test:
@echo "Running Full Test Suite"
@.venv/bin/pytest --unit --system --backend=all --core --cli --server --emacs || exit 1
test-unit:
@echo "Running Unit Tests for all modules..."
@.venv/bin/pytest --core --cli --server --emacs || exit 1
test-core:
@echo "Running Core Tests..."
@.venv/bin/pytest --core || exit 1
test-emacs:
@echo "Running Emacs Unit Tests..."
@.venv/bin/pytest --emacs || exit 1
test-backend:
@echo "Running System Tests for backend: ${BACKEND}"
@.venv/bin/pytest --system --backend=${BACKEND} --core --cli --server --emacs || exit 1
test-system:
@echo "Running System Tests for all backends..."
@.venv/bin/pytest --system --backend=all --core --cli --server --emacs || exit 1