c93b6417f6
A companion to the built-in nose.plugins.cover, this plugin will write out an XML coverage report to a file named coverage.xml. It will honor all the options you pass to the Nose coverage plugin, especially -cover-package.
30 lines
594 B
Makefile
30 lines
594 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2016/04/16 13:59:54 danj Exp $
|
|
|
|
COMMENT = extend nose coverage to add Cobertura-style XML reports
|
|
|
|
MODPY_EGG_VERSION = 1.0.10
|
|
DISTNAME = nosexcover-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
CATEGORIES = devel
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MODPY_PI = Yes
|
|
|
|
MODULES = lang/python
|
|
|
|
FLAVORS = python3
|
|
FLAVOR ?=
|
|
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
RUN_DEPENDS = devel/py-nose${MODPY_FLAVOR} \
|
|
devel/py-coverage${MODPY_FLAVOR}
|
|
TEST_DEPENDS = ${RUN_DEPENDS}
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/nosexcover && nosetests${MODPY_BIN_SUFFIX} -v tests.py
|
|
|
|
.include <bsd.port.mk>
|