Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Mutation testing #96

Closed
DavidVorick opened this issue Dec 3, 2014 · 0 comments
Closed

Mutation testing #96

DavidVorick opened this issue Dec 3, 2014 · 0 comments

Comments

@DavidVorick
Copy link
Member

https://en.wikipedia.org/wiki/Mutation_testing

It seems like there's at least one toolset for helping with this in go.

This is something we don't need to do right away, but should probably do before the 1.0. The basic idea is that we intentionally introduce mutations into the code (chainging '>' to '<' or += 1 to -= 1, or adding 15 instead of 16, etc, and that each mutation should cause a test to fail. If it doesn't, it means your test coverage isn't sufficient and doesn't catch simple programmer errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant