3 %bcond_without tests # do not perform "make test"
5 %define module coverage-test-runner
6 Summary: Python module for enforcing code coverage completeness
11 Group: Libraries/Python
12 Source0: http://code.liw.fi/debian/pool/main/p/python-coverage-test-runner/%{name}_%{version}.orig.tar.xz
13 # Source0-md5: 74dde92363a7fcc0dabe840e9e662857
14 URL: http://liw.fi/coverage-test-runner/
15 BuildRequires: python-coverage
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.710
18 Requires: python-coverage
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 CoverageTestRunner is a Python module for running unit tests and
24 failing them if the unit test module does not exercise all statements
25 in the module it tests.
27 For example, unit tests in module foo_tests.py are supposed to test
28 everything in the foo.py module, and if they don't, it's a bug in the
29 test coverage. It does not matter if other tests happen to test the
30 missing parts. The unit tests for the module should test everything in
44 rm -rf $RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{py_sitescriptdir}/CoverageTestRunner.py[co]
56 %{py_sitescriptdir}/CoverageTestRunner-%{version}-py*.egg-info