UNPKG

569 BPlain TextView Raw
1COVERAGE_DIR := ./code_coverage
2PACKAGE_DIR := scripts
3UNIT_TEST_DIR := test
4
5unit_test:
6 echo "Running unit tests";
7 pytest ${UNIT_TEST_DIR} --cov=${PACKAGE_DIR} --full-trace -vv;
8coverage:
9 echo "Generating code coverage documentation";
10 coverage html;
11code_docs:
12 echo "Generating code documentation (via doxygen)";
13 doxygen doxygen.conf;
14lint:
15 echo "Running linter (any error will result in non-zero exit code)";
16 pylint -j 0 ${PACKAGE_DIR}/;
17clean:
18 echo "Removing existing unit test and document artifacts"
19 rm -r $(COVERAGE_DIR)
20 rm -r docs/html/*
21.PHONY: clean
\No newline at end of file