diff --git a/Makefile b/Makefile index 55b278fc5..0f5eacf85 100644 --- a/Makefile +++ b/Makefile @@ -105,17 +105,17 @@ image-testsuite: test: # Run tests and print output. -rm -rf kivy/tests/build - env KIVY_NO_ARGS=1 $(PYTEST) --cov-report term-missing --cov=kivy kivy/tests + env KIVY_NO_ARGS=1 $(PYTEST) kivy/tests test-to-txt: - # Run tests and save output to 'coverage.txt'. + # Run tests with missing line stats and save output to 'coverage.txt'. -rm -rf kivy/tests/build - env KIVY_NO_ARGS=1 $(PYTEST) kivy/tests > coverage.txt + env KIVY_NO_ARGS=1 $(PYTEST) --cov-report term-missing --cov=kivy kivy/tests > coverage.txt test-to-xml: - # Run tests and save output to 'coverage.xml'. + # Run tests with missing line stats and save output to 'coverage.xml'. -rm -rf kivy/tests/build - env KIVY_NO_ARGS=1 $(PYTEST) --cov-report xml kivy/tests + env KIVY_NO_ARGS=1 $(PYTEST) --cov-report xml --cov-report term-missing --cov=kivy kivy/tests cover: # Note: This option does not currently support the missing lines analysis. diff --git a/pyproject.toml b/pyproject.toml index ef8462193..c13c83118 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,4 +11,4 @@ requires = [ ] [tool.pytest.ini_options] -addopts = "--benchmark-skip --benchmark-warmup=on --benchmark-warmup-iterations=5 --benchmark-disable-gc --benchmark-name=short --benchmark-sort=mean --benchmark-group-by=fullfunc --benchmark-storage=.benchmarks-kivy --benchmark-save=kivy --cov-report term-missing --cov=kivy" +addopts = "--benchmark-skip --benchmark-warmup=on --benchmark-warmup-iterations=5 --benchmark-disable-gc --benchmark-name=short --benchmark-sort=mean --benchmark-group-by=fullfunc --benchmark-storage=.benchmarks-kivy --benchmark-save=kivy"