Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 808 Bytes

README.md

File metadata and controls

37 lines (22 loc) · 808 Bytes

Mutation testing (FizzBuzz)

The application demonstrating how mutation testing works, presented at Pykonik Tech Talks #61.

Mutation tests are presented here using a simple game example: FizzBuzz.

Slides from the presentation can be found here.

Prerequisites

  • Python 3.9

Setup

  • Create a new, clean virtual environment with Python 3.9

  • Install requirements:

    pip install -r requirements.txt
    

Usage

  • Run the FizzBuzz script:

    python fizzbuzz.py 1 15
    
  • Run tests without mutations:

    pytest
    
  • Run tests with mutations:

    mutmut run
    mutmut results
    mutmut show <id>