svn commit: r388424 - in head/devel: . py-pytest-xdist
Kubilay Kocak
koobs at FreeBSD.org
Wed Jun 3 07:21:21 UTC 2015
Author: koobs
Date: Wed Jun 3 07:21:19 2015
New Revision: 388424
URL: https://svnweb.freebsd.org/changeset/ports/388424
Log:
[NEW] devel/py-pytest-xdist: Py.test plugin for distributed testing
The pytest-xdist plugin extends py.test with some unique test execution modes:
* Test run parallelization: if you have multiple CPUs or hosts you can use
those for a combined test run. This allows to speed up development or to
use special resources of remote machines.
* --boxed: (not available on Windows) run each test in a boxed subprocess
to survive SEGFAULTS or otherwise dying processes
* --looponfail: run your tests repeatedly in a subprocess. After each run
py.test waits until a file in your project changes and then re-runs the
previously failing tests. This is repeated until all tests pass after
which again a full run is performed.
* Multi-Platform coverage: you can specify different Python interpreters
or different platforms and run tests in parallel on all of them.
WWW: http://bitbucket.org/hpk42/pytest-xdist
Added:
head/devel/py-pytest-xdist/
head/devel/py-pytest-xdist/Makefile (contents, props changed)
head/devel/py-pytest-xdist/distinfo (contents, props changed)
head/devel/py-pytest-xdist/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Wed Jun 3 06:27:55 2015 (r388423)
+++ head/devel/Makefile Wed Jun 3 07:21:19 2015 (r388424)
@@ -4045,6 +4045,7 @@
SUBDIR += py-pytest-capturelog
SUBDIR += py-pytest-runner
SUBDIR += py-pytest-timeout
+ SUBDIR += py-pytest-xdist
SUBDIR += py-python-jenkins
SUBDIR += py-python-statsd
SUBDIR += py-pythonbrew
Added: head/devel/py-pytest-xdist/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-pytest-xdist/Makefile Wed Jun 3 07:21:19 2015 (r388424)
@@ -0,0 +1,28 @@
+# Created by: Kubilay Kocak <koobs at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= pytest-xdist
+PORTVERSION= 1.12
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= koobs at FreeBSD.org
+COMMENT= Py.test plugin for distributed testing
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}execnet>=1.1:${PORTSDIR}/sysutils/py-execnet \
+ ${PYTHON_PKGNAMEPREFIX}pytest>=2.4.2:${PORTSDIR}/devel/py-pytest \
+ ${PYTHON_PKGNAMEPREFIX}py>=1.4.22:${PORTSDIR}/devel/py-py
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.5.1:${PORTSDIR}/devel/py-pytest \
+ ${PYTHON_PKGNAMEPREFIX}pexpect>0:${PORTSDIR}/misc/py-pexpect
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+regression-test: build
+ @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
+
+.include <bsd.port.mk>
Added: head/devel/py-pytest-xdist/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-pytest-xdist/distinfo Wed Jun 3 07:21:19 2015 (r388424)
@@ -0,0 +1,2 @@
+SHA256 (pytest-xdist-1.12.tar.gz) = 1e696df146e62564fef2f0a7dabdd2d8f690fe6d68cb7aab0a1a4bd99e041580
+SIZE (pytest-xdist-1.12.tar.gz) = 39123
Added: head/devel/py-pytest-xdist/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-pytest-xdist/pkg-descr Wed Jun 3 07:21:19 2015 (r388424)
@@ -0,0 +1,15 @@
+The pytest-xdist plugin extends py.test with some unique test execution modes:
+
+ * Test run parallelization: if you have multiple CPUs or hosts you can use
+ those for a combined test run. This allows to speed up development or to
+ use special resources of remote machines.
+ * --boxed: (not available on Windows) run each test in a boxed subprocess
+ to survive SEGFAULTS or otherwise dying processes
+ * --looponfail: run your tests repeatedly in a subprocess. After each run
+ py.test waits until a file in your project changes and then re-runs the
+ previously failing tests. This is repeated until all tests pass after
+ which again a full run is performed.
+ * Multi-Platform coverage: you can specify different Python interpreters
+ or different platforms and run tests in parallel on all of them.
+
+WWW: http://bitbucket.org/hpk42/pytest-xdist
More information about the svn-ports-all
mailing list