File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 51
51
run : cd ../supertokens-root && ./loadModules
52
52
- name : Setting up supertokens-root test environment
53
53
run : cd ../supertokens-root && bash ./utils/setupTestEnvLocal
54
- - name : Run tests
55
- run : make test
54
+ - name : Run tests with coverage report
55
+ run : make coverage
Original file line number Diff line number Diff line change 14
14
lib /
15
15
pyvenv.cfg
16
16
sqlite.db
17
- .mypy_cache /
17
+ .mypy_cache /
18
+ htmlcov /
19
+ .coverage
Original file line number Diff line number Diff line change 1
1
help :
2
2
@echo " \x1b[33;1mcheck-lint: \x1b[0mtest styling of code for the library using flak8"
3
3
@echo " \x1b[33;1mtest: \x1b[0mruns pytest"
4
+ @echo " \x1b[33;1mcoverage: \x1b[0mruns pytest with coverage report"
4
5
@echo " \x1b[33;1mlint: \x1b[0mformat code using black"
5
6
@echo " \x1b[33;1mset-up-hooks: \x1b[0mset up various git hooks"
6
7
@echo " \x1b[33;1mdev-install: \x1b[0minstall all packages required for development"
@@ -19,6 +20,11 @@ set-up-hooks:
19
20
test :
20
21
pytest ./tests/
21
22
23
+ coverage :
24
+ coverage run -m pytest ./tests/
25
+ coverage report -m
26
+ coverage html
27
+
22
28
dev-install :
23
29
pip install -r dev-requirements.txt
24
30
Original file line number Diff line number Diff line change @@ -82,3 +82,4 @@ uvicorn==0.18.2
82
82
Werkzeug==2.0.3
83
83
wrapt==1.13.3
84
84
zipp==3.7.0
85
+ coverage==6.3.2
You can’t perform that action at this time.
0 commit comments