Skip to content

Mutations tested unreliably: where to search for the bug? #280

Closed Answered by sourcefrog
kevinmatthes asked this question in Q&A

You must be logged in to vote

What I would suggest there is:

Make that change by hand in your working tree; see if the tests catch it.

I ran that here from the feature/tar-handling-cli branch and it says all the mutants were missed:

; cargo mutants -f application.rs --regex Logic --in-place
Found 5 mutants to test
ok       Unmutated baseline in 5.2s build + 0.1s test
 INFO Auto-set test timeout to 20s
MISSED   src/application.rs:87:9: replace Logic::resolve_files -> Result<()> with Ok(()) in 0.6s build + 0.1s test
MISSED   src/application.rs:76:31: replace == with != in Logic::main in 0.5s build + 0.1s test
MISSED   src/application.rs:66:9: replace Logic::main -> Result<()> with Ok(()) in 0.6s build + 0.1s test
MISSED…

Replies: 3 comments 8 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
8 replies
@kevinmatthes

@kevinmatthes

@kevinmatthes

@sourcefrog

Answer selected by kevinmatthes
@kevinmatthes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants