-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
64 lines (48 loc) · 1.44 KB
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.PHONY: setup format lint typing check test allpytest clean ci coverage selenium testui testall ciall cidetectsetuperror
setup:
python -m pip install pip --upgrade
pip install -e .
pip install -r requirements-dev.txt
pip install -r requirements-dev-ui.txt
format:
black httpdbg tests
lint:
black --check httpdbg tests
flake8 httpdbg tests
typing:
mypy
check: lint typing
test:
pytest -v -m "not ui" tests/
allpytest:
tox -e pytest4 -e pytest5 -e pytest6 -e pytest7
clean:
rm -rf .pytest_cache
rm -rf __pycache__
rm -rf httpdbg.egg-info
rm -rf venv
rm -rf build
rm -rf dist
ci:
python -m pip install pip --upgrade
python -m pip install pip setuptools wheel --upgrade
pip install -r requirements-dev.txt
pip install .
python -m pytest -v -m "not ui" tests/ --ignore=tests/ui/
coverage:
coverage run -m pytest -v tests/
selenium:
docker run -d --rm --network="host" -v /dev/shm:/dev/shm selenium/standalone-chrome:latest
testui:
pytest -v -m ui --driver Remote --capability browserName chrome tests/
testall:
pytest -v --driver Remote --capability browserName chrome tests/
ciall:
python -m pip install pip --upgrade
python -m pip install pip setuptools wheel --upgrade
pip install -r requirements-dev.txt
pip install -r requirements-dev-ui.txt
pip install .
coverage run -m pytest -v --driver Remote --capability browserName chrome tests/
cidetectsetuperror:
cd tests/ && python -m pytest -v -m "not ui" ./ --ignore=./ui/ && cd ..