Skip to main content

Mutation testing for Python

Project description

Mutant is a simple mutation testing framework for Python. It is currently only a proof of concept.

What is mutation testing?

Mutation testing is a method for determining how complete your unit tests are. A small mutation is introduced into your code (e.g. a ‘<’ is changed to a ‘<=’) and then your tests are run. If your tests still pass then the code which was changed was (probably) not being completely tested.

How does mutant work?

Given a module, mutant will iterate over all of its top-level functions, modifying their bytecode to introduce mutations and then making sure that the module’s doctests fail.

To run:

$ python mutant.py <MODULE-NAME>

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mutant-0.1.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file mutant-0.1.tar.gz.

File metadata

  • Download URL: mutant-0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mutant-0.1.tar.gz
Algorithm Hash digest
SHA256 06c7f0a146783b879f8bbc113105afe73754a917789a645ba29662cbd054c12c
MD5 c7b918ce1f2615f6486068cf112cebe0
BLAKE2b-256 f686d40e66b2db96060d58a6da9995da6d2a0037294588a0e86f83f5ae36e7b4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page