cf38e4adc9
testscenarios provides clean dependency injection for python unittest style tests. This can be used for interface testing (testing many implementations via a single test suite) or for classic dependency injection (provide tests with dependencies externally to the test code itself, allowing easy testing in different situations).
25 lines
806 B
Makefile
25 lines
806 B
Makefile
# $NetBSD: Makefile,v 1.1 2017/02/22 14:21:40 wiz Exp $
|
|
|
|
DISTNAME= testscenarios-0.5.0
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=t/testscenarios/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://pypi.python.org/pypi/testscenarios
|
|
COMMENT= Pyunit extension for dependency injection
|
|
LICENSE= apache-2.0 OR modified-bsd
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-pbr-[0-9]*:../../devel/py-pbr
|
|
# as of 0.5.0, many failures
|
|
# https://github.com/testing-cabal/testscenarios/issues/2
|
|
# TEST_DEPENDS
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
|
|
# circular dependency
|
|
#BUILD_DEPENDS+= ${PYPKGPREFIX}-testtools-[0-9]*:../../devel/py-testtools
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|