From bcff82938a0f80858137aa9f84d1d4d9ac22bf36 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Sun, 3 Jun 2012 13:13:34 +0700 Subject: Spec files for the Obnam backup tool --- admin/python-coverage-test-runner.spec | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 admin/python-coverage-test-runner.spec (limited to 'admin/python-coverage-test-runner.spec') diff --git a/admin/python-coverage-test-runner.spec b/admin/python-coverage-test-runner.spec new file mode 100644 index 0000000..d736ce7 --- /dev/null +++ b/admin/python-coverage-test-runner.spec @@ -0,0 +1,49 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} + +%global pkgname CoverageTestRunner +%global prjname coverage-test-runner + +Name: python-%{prjname} +Version: 1.0 +Release: 1%{?dist} +Summary: Python module for enforcing code coverage completeness + +License: GPLv3+ +URL: http://liw.fi/%{prjname}/ +Source0: http://code.liw.fi/%{prjname}/%{pkgname}-%{version}.tar.gz + +BuildArch: noarch +Requires: python-coverage + +%description +CoverageTestRunner is a Python module for running unit tests and +failing them if the unit test module does not exercise all statements +in the module it tests. + +For example, unit tests in module foo_tests.py are supposed to test +everything in the foo.py module, and if they don't, it's a bug in the +test coverage. It does not matter if other tests happen to test the +missing parts. The unit tests for the module should test everything in +that module. + + +%prep +%setup -q -n %{pkgname}-%{version} + + +%build +%{__python} setup.py build + + +%install +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + + +%files +%doc COPYING README +%{python_sitelib}/* + + +%changelog +* Sun Jun 3 2012 Michel Salim - 1.0-1 +- Initial package -- cgit