7b513a3d17
unittest2pytest is a tool that helps rewriting Python unittest test-cases into pytest test-cases. In contrast to other similar tools, this unittest2pytest * handles keyword arguments, * handles single-line test-cases and several tests on one line, * uses context-handlers where appropriate. This is done by using lib2to3 and Python's mighty inspect module. WWW: https://pypi.org/project/unittest2pytest/ WWW: https://github.com/pytest-dev/unittest2pytest
22 lines
528 B
Makefile
22 lines
528 B
Makefile
PORTNAME= unittest2pytest
|
|
PORTVERSION= 0.4
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Convert unittest test-cases to pytest
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING-GPLv3.txt
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
NO_ARCH= yes
|
|
|
|
do-test:
|
|
@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
|
|
|
|
.include <bsd.port.mk>
|