1 | COVERAGE_DIR := ./code_coverage
|
2 | PACKAGE_DIR := scripts
|
3 | UNIT_TEST_DIR := test
|
4 |
|
5 | unit_test:
|
6 | echo "Running unit tests";
|
7 | pytest ${UNIT_TEST_DIR} --cov=${PACKAGE_DIR} --full-trace -vv;
|
8 | coverage:
|
9 | echo "Generating code coverage documentation";
|
10 | coverage html;
|
11 | code_docs:
|
12 | echo "Generating code documentation (via doxygen)";
|
13 | doxygen doxygen.conf;
|
14 | lint:
|
15 | echo "Running linter (any error will result in non-zero exit code)";
|
16 | pylint -j 0 ${PACKAGE_DIR}/;
|
17 | clean:
|
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 |