Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 2015 07:21:20 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r388424 - in head/devel: . py-pytest-xdist
Message-ID:  <201506030721.t537LK0V067616@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506030721.t537LK0V067616>