File tree Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 5151 run : cd ../supertokens-root && ./loadModules
5252 - name : Setting up supertokens-root test environment
5353 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 1414lib /
1515pyvenv.cfg
1616sqlite.db
17- .mypy_cache /
17+ .mypy_cache /
18+ htmlcov /
Original file line number Diff line number Diff line change 11help :
22 @echo " \x1b[33;1mcheck-lint: \x1b[0mtest styling of code for the library using flak8"
33 @echo " \x1b[33;1mtest: \x1b[0mruns pytest"
4+ @echo " \x1b[33;1mcoverage: \x1b[0mruns pytest with coverage report"
45 @echo " \x1b[33;1mlint: \x1b[0mformat code using black"
56 @echo " \x1b[33;1mset-up-hooks: \x1b[0mset up various git hooks"
67 @echo " \x1b[33;1mdev-install: \x1b[0minstall all packages required for development"
@@ -19,6 +20,11 @@ set-up-hooks:
1920test :
2021 pytest ./tests/
2122
23+ coverage :
24+ coverage run -m pytest ./tests/
25+ coverage report -m
26+ coverage html
27+
2228dev-install :
2329 pip install -r dev-requirements.txt
2430
Original file line number Diff line number Diff line change @@ -82,3 +82,4 @@ uvicorn==0.18.2
8282Werkzeug==2.0.3
8383wrapt==1.13.3
8484zipp==3.7.0
85+ coverage==6.3.2
You can’t perform that action at this time.
0 commit comments