1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

[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
This commit is contained in:
Kubilay Kocak 2015-06-03 07:21:19 +00:00
parent d94c72f46d
commit 220d744242
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=388424
4 changed files with 46 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,28 @@
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= pytest-xdist
PORTVERSION= 1.12
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@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>

View File

@ -0,0 +1,2 @@
SHA256 (pytest-xdist-1.12.tar.gz) = 1e696df146e62564fef2f0a7dabdd2d8f690fe6d68cb7aab0a1a4bd99e041580
SIZE (pytest-xdist-1.12.tar.gz) = 39123

View File

@ -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