Skip to content

Commit

Permalink
devel/py-mutmut: New port: Mutation testing for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Dec 31, 2022
1 parent 7cb2e0f commit f862f90
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -4847,6 +4847,7 @@
SUBDIR += py-multitasking
SUBDIR += py-munch
SUBDIR += py-murmurhash
SUBDIR += py-mutmut
SUBDIR += py-mygpoclient
SUBDIR += py-mypy
SUBDIR += py-mypy-protobuf
Expand Down
28 changes: 28 additions & 0 deletions devel/py-mutmut/Makefile
@@ -0,0 +1,28 @@
PORTNAME= mutmut
DISTVERSION= 2.4.3
CATEGORIES= devel
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= yuri@FreeBSD.org
COMMENT= Mutation testing for Python 3
WWW= https://mutmut.readthedocs.io/en/latest/

LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}glob2>0:devel/py-glob2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}junit-xml>=1.8:textproc/py-junit-xml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}parso>0:textproc/py-parso@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pony>0:databases/py-pony@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}toml>0:textproc/py-toml@${PY_FLAVOR}
BUILD_DEPENDS= ${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}

USES= python:3.7+
USE_PYTHON= distutils concurrent autoplist

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-mutmut/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1672471152
SHA256 (mutmut-2.4.3.tar.gz) = 676c253ee4c87d4aa32e257827b3f6fdb4343925b29fa17aa3456ed9be5d93d4
SIZE (mutmut-2.4.3.tar.gz) = 40674
11 changes: 11 additions & 0 deletions devel/py-mutmut/pkg-descr
@@ -0,0 +1,11 @@
Mutmut is a mutation testing system for Python, with a strong focus on ease of
use. If you don't know what mutation testing is try starting with this article.

Some highlight features:
* Found mutants can be applied on disk with a simple command making it very easy
to work with the results
* Remembers work that has been done, so you can work incrementally
* Supports all test runners (because mutmut only needs an exit code from the
test command)
* Can use coverage data to only do mutation testing on covered lines
* Battle tested on real libraries by multiple companies

0 comments on commit f862f90

Please sign in to comment.