Skip to content

Commit 35171b4

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [make] rearrange test and coverage actions. Coverage (console summary) report now run at the end of test.
1 parent f221a67 commit 35171b4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,17 @@ test/styling: dependencies
8282
${RUNTIME_TOOL} -m pycodestyle --statistics src/
8383

8484
test: env dependencies
85-
${RUNTIME_TOOL} -m pytest --verbose -o log_cli=true --log-cli-level=${LOG_LEVEL} --full-trace src/
85+
${RUNTIME_TOOL} -m coverage run -m \
86+
pytest --verbose \
87+
-o log_cli=true \
88+
--log-cli-level=${LOG_LEVEL} \
89+
--full-trace src/
90+
${RUNTIME_TOOL} -m coverage report
8691

87-
coverage: dependencies
88-
${RUNTIME_TOOL} -m coverage run -m pytest --verbose src/
92+
coverage: test
8993
${RUNTIME_TOOL} -m coverage lcov -o coverage/lcov.info
90-
${RUNTIME_TOOL} -m coverage report
9194

92-
coverage/html: coverage
95+
coverage/html: test
9396
${RUNTIME_TOOL} -m coverage html
9497

9598
outdated:

0 commit comments

Comments
 (0)