Skip to main content

Mutation testing with MutPy for Django.

Project description

Build Status Coverage Status Code Climate

Django integration for the mutation testing framework MutPy.

MutPy is a mutation test framework for Python. It basically seeds a bug into your code and then runs your unit tests to see if they find it. Mutation testing helps to identify flaws in your tests. Because if your tests can not uncover obvious bugs, they will also not uncover complex ones.

This Django app eases the integration of MutPy into your Django project. It takes care of setting up the Django environment for the tests and finding the unit tests and the production code.

Requirements

  • Python >= 3.3

  • MutPy >= 0.5.1

Installation

First install the module.

Either

pip install django-mutpy

or download the repository and

git clone https://github.com/phihos/django-mutpy.git
cd django-mutpy
python setup.py install

Then add django_mutpy to the list of installed apps.

INSTALLED_APPS = [
  ...
  'django_mutpy',
  ...
  ]

Usage

Run

python manage.py muttest <app1> <app2> ... [--modules <list of modules to include>]

Project details


Download files

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

Source Distribution

django-mutpy-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file django-mutpy-0.1.2.tar.gz.

File metadata

File hashes

Hashes for django-mutpy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a57132ea348624007840f0b17026c7b4210fd6c6b3303c1de7305d011f9072c4
MD5 894ff9d07945f36d7c29648283af9174
BLAKE2b-256 7cbc71e90666c99c462a33f1515c9c65ecf04cf0608333a3ae23f514dc1787bb

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