git: 0d504a4e127e - main - py-pytest-regtest: add port: Pytest plugin for regression tests

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Fri, 08 Oct 2021 20:42:39 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0d504a4e127e7be34ea5e0de6c611d1bfa946c32

commit 0d504a4e127e7be34ea5e0de6c611d1bfa946c32
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-10-07 14:41:33 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-10-08 20:35:49 +0000

    py-pytest-regtest: add port: Pytest plugin for regression tests
    
    pytest-regtest is a pytest-plugin for implementing regression tests.
    Compared to functional testing a regression test does not test if
    software produces correct results, instead a regression test checks
    if software behaves the same way as it did before introduced changes.
    
    pytest-regtest allows capturing selected output which then can be
    compared to the captured output from former runs.
    
    WWW: https://pypi.org/project/pytest-regtest/
    WWW: https://gitlab.com/uweschmitt/pytest-regtest
---
 devel/Makefile                    |  1 +
 devel/py-pytest-regtest/Makefile  | 23 +++++++++++++++++++++++
 devel/py-pytest-regtest/distinfo  |  3 +++
 devel/py-pytest-regtest/pkg-descr | 10 ++++++++++
 4 files changed, 37 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index d21fd12b32e0..0692fe98d31e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5034,6 +5034,7 @@
     SUBDIR += py-pytest-pycodestyle
     SUBDIR += py-pytest-randomly
     SUBDIR += py-pytest-regressions
+    SUBDIR += py-pytest-regtest
     SUBDIR += py-pytest-relaxed
     SUBDIR += py-pytest-rerunfailures
     SUBDIR += py-pytest-runner
diff --git a/devel/py-pytest-regtest/Makefile b/devel/py-pytest-regtest/Makefile
new file mode 100644
index 000000000000..52393f644879
--- /dev/null
+++ b/devel/py-pytest-regtest/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	pytest-regtest
+PORTVERSION=	1.4.6
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	amdmi3@FreeBSD.org
+COMMENT=	Pytest plugin for regression tests
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+NO_ARCH=	yes
+
+do-test:
+	@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
+
+.include <bsd.port.mk>
diff --git a/devel/py-pytest-regtest/distinfo b/devel/py-pytest-regtest/distinfo
new file mode 100644
index 000000000000..1c7af2eea298
--- /dev/null
+++ b/devel/py-pytest-regtest/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1633617306
+SHA256 (pytest-regtest-1.4.6.tar.gz) = 4c85a1d1f99f4ebe4932b33bff950de364dcac543ce88c7bef295a5d1f10a40f
+SIZE (pytest-regtest-1.4.6.tar.gz) = 10182
diff --git a/devel/py-pytest-regtest/pkg-descr b/devel/py-pytest-regtest/pkg-descr
new file mode 100644
index 000000000000..2af1a5a1f90f
--- /dev/null
+++ b/devel/py-pytest-regtest/pkg-descr
@@ -0,0 +1,10 @@
+pytest-regtest is a pytest-plugin for implementing regression tests.
+Compared to functional testing a regression test does not test if
+software produces correct results, instead a regression test checks
+if software behaves the same way as it did before introduced changes.
+
+pytest-regtest allows capturing selected output which then can be
+compared to the captured output from former runs.
+
+WWW: https://pypi.org/project/pytest-regtest/
+WWW: https://gitlab.com/uweschmitt/pytest-regtest