nuclearsandwich / mutant

Mutant is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is that if code can be changed and your tests don't notice, either that code isn't being covered or it doesn't do anything. This is a rewrite on top of Rubinius.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mutant Build Status Dependency Status

Mutant is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is that if code can be changed and your tests don't notice, either that code isn't being covered or it doesn't do anything.

Largely based on heckle, this is a rewrite on top of Rubinius.

Usage

mutate "ClassName#method_to_test" spec

To test a class method, use:

mutate "ClassName.class_method_to_test" spec

Development roadmap

As an experiment, I've set up a public Trello board with the development roadmap up to the 1.0 release. You can vote and comment cards to give constructive feedback to the project. Just have a look and leave a comment! :)

Who's this

This project was originally created by @justinko (derived from this gist by @dkubb) and is released under the MIT license. I am pleased to be the current maintainer :) I'm @txustice on twitter (where you should probably follow me!).

About

Mutant is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is that if code can be changed and your tests don't notice, either that code isn't being covered or it doesn't do anything. This is a rewrite on top of Rubinius.