From nobody Fri Oct 08 20:42:39 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 78D6317E5997; Fri, 8 Oct 2021 20:42:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HR0W40J1Xz3rP1; Fri, 8 Oct 2021 20:42:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CD17A5F1B; Fri, 8 Oct 2021 20:42:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 198KgdcG075012; Fri, 8 Oct 2021 20:42:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 198KgdZU075011; Fri, 8 Oct 2021 20:42:39 GMT (envelope-from git) Date: Fri, 8 Oct 2021 20:42:39 GMT Message-Id: <202110082042.198KgdZU075011@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: 0d504a4e127e - main - py-pytest-regtest: add port: Pytest plugin for regression tests List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0d504a4e127e7be34ea5e0de6c611d1bfa946c32 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=0d504a4e127e7be34ea5e0de6c611d1bfa946c32 commit 0d504a4e127e7be34ea5e0de6c611d1bfa946c32 Author: Dmitry Marakasov AuthorDate: 2021-10-07 14:41:33 +0000 Commit: Dmitry Marakasov 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 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