git: 6b1d91b9b97b - main - devel/py-pytest-random-order: Add py-pytest-random-order 1.0.4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Dec 2022 09:07:52 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=6b1d91b9b97bf9b95eb602bae918f1965b0f62c5 commit 6b1d91b9b97bf9b95eb602bae918f1965b0f62c5 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-12-30 08:36:11 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-12-30 09:04:00 +0000 devel/py-pytest-random-order: Add py-pytest-random-order 1.0.4 pytest-random-order is a pytest plugin that randomises the order of tests. This can be useful to detect a test that passes just because it happens to run after an unrelated test that leaves the system in a favourable state. The plugin allows user to control the level of randomness they want to introduce and to disable reordering on subsets of tests. Tests can be rerun in a specific order by passing a seed value reported in a previous test run. --- devel/Makefile | 1 + devel/py-pytest-random-order/Makefile | 21 +++++++++++++++++++++ devel/py-pytest-random-order/distinfo | 3 +++ devel/py-pytest-random-order/pkg-descr | 7 +++++++ 4 files changed, 32 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index bbd0b06373d4..fff7f4bd782c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5177,6 +5177,7 @@ SUBDIR += py-pytest-profiling SUBDIR += py-pytest-pycodestyle SUBDIR += py-pytest-qt + SUBDIR += py-pytest-random-order SUBDIR += py-pytest-randomly SUBDIR += py-pytest-regressions SUBDIR += py-pytest-regtest diff --git a/devel/py-pytest-random-order/Makefile b/devel/py-pytest-random-order/Makefile new file mode 100644 index 000000000000..d4a3507b2893 --- /dev/null +++ b/devel/py-pytest-random-order/Makefile @@ -0,0 +1,21 @@ +PORTNAME= pytest-random-order +PORTVERSION= 1.0.4 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Randomize the order in which pytest tests are run with some control over the randomness +WWW= https://github.com/jbasko/pytest-random-order + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.0.0,1:devel/py-pytest@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-pytest-random-order/distinfo b/devel/py-pytest-random-order/distinfo new file mode 100644 index 000000000000..53b799be027a --- /dev/null +++ b/devel/py-pytest-random-order/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1669057509 +SHA256 (pytest-random-order-1.0.4.tar.gz) = 6b2159342a4c8c10855bc4fc6d65ee890fc614cb2b4ff688979b008a82a0ff52 +SIZE (pytest-random-order-1.0.4.tar.gz) = 18045 diff --git a/devel/py-pytest-random-order/pkg-descr b/devel/py-pytest-random-order/pkg-descr new file mode 100644 index 000000000000..d07822ed7d6f --- /dev/null +++ b/devel/py-pytest-random-order/pkg-descr @@ -0,0 +1,7 @@ +pytest-random-order is a pytest plugin that randomises the order of tests. This +can be useful to detect a test that passes just because it happens to run after +an unrelated test that leaves the system in a favourable state. + +The plugin allows user to control the level of randomness they want to introduce +and to disable reordering on subsets of tests. Tests can be rerun in a specific +order by passing a seed value reported in a previous test run.