devel/py-pytest-cpp: Add py-pytest-cpp 2.3.0

pytest-cpp uses pytest runner to discover and execute C++ tests. It supports
Google Test, Boost.Test, and Catch2.

This brings several benefits:
- Allows you to run all your tests in multi-language projects with a single
  command;
- Execute C++ tests in parallel using pytest-xdist plugin;
- Use --junitxml option to produce a single and uniform xml file with all your
  test suite results;
- Filter which tests to run using standard test filtering capabilities, such as
  by file names, directories, keywords by using the -k option, etc.;
This commit is contained in:
Po-Chuan Hsieh 2023-04-19 01:51:37 +08:00
parent 0c24df6fc7
commit daf74492d8
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
4 changed files with 38 additions and 0 deletions

View file

@ -5249,6 +5249,7 @@
SUBDIR += py-pytest-checkdocs
SUBDIR += py-pytest-console-scripts
SUBDIR += py-pytest-cov
SUBDIR += py-pytest-cpp
SUBDIR += py-pytest-datadir
SUBDIR += py-pytest-django
SUBDIR += py-pytest-enabler

View file

@ -0,0 +1,23 @@
PORTNAME= pytest-cpp
PORTVERSION= 2.3.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Use pytest runner to discover and execute C++ tests
WWW= https://github.com/pytest-dev/pytest-cpp
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}colorama>=0:devel/py-colorama@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=7.0,1:devel/py-pytest@${PY_FLAVOR}
USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1681052892
SHA256 (pytest-cpp-2.3.0.tar.gz) = 37abfa693697940aed2e7c034698188dee3616183ad9b3f764f3b06aeb75ed4a
SIZE (pytest-cpp-2.3.0.tar.gz) = 298220

View file

@ -0,0 +1,11 @@
pytest-cpp uses pytest runner to discover and execute C++ tests. It supports
Google Test, Boost.Test, and Catch2.
This brings several benefits:
- Allows you to run all your tests in multi-language projects with a single
command;
- Execute C++ tests in parallel using pytest-xdist plugin;
- Use --junitxml option to produce a single and uniform xml file with all your
test suite results;
- Filter which tests to run using standard test filtering capabilities, such as
by file names, directories, keywords by using the -k option, etc.;