-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 817 Bytes
/
Makefile
File metadata and controls
40 lines (29 loc) · 817 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
34
35
36
37
38
39
40
.PHONY: setup format lint typing check firefox testfirefox chrome testchrome clean
setup:
python -m pip install pip --upgrade
python -m pip install setuptools wheel --upgrade
pip install -e .
pip install -r requirements-dev.txt
format:
black niobium tests
lint:
black --check niobium tests
flake8 niobium tests
typing:
mypy
check: lint typing
firefox:
docker compose up -d --force-recreate selenium-firefox
testfirefox:
pytest -v tests/ --driver Remote --capability browserName firefox --website http://website/ -x
chrome:
docker compose up -d --force-recreate selenium-chrome
testchrome:
pytest -v tests/ --driver Remote --capability browserName chrome --website http://website/ -x
clean:
rm -rf .pytest_cache
rm -rf __pycache__
rm -rf *.egg-info
rm -rf venv
rm -rf build
rm -rf dist