Makefile: Improve test target

This commit is contained in:
2021-02-14 11:12:30 -06:00
parent 990ceb78b9
commit ce19993078
3 changed files with 13 additions and 7 deletions

View File

@@ -66,6 +66,12 @@ install-deps:
run:
cd build && ./notes
.PHONY: large-tests
large-tests:
pytest
.PHONY: test
test: all
@cd build ;\
./notes --port=8040 &\
NOTES_PID=$$! ;\
pytest .. ;\
PYTEST_RESULT=$$? ;\
kill $$NOTES_PID ;\
exit $$PYTEST_RESULT