Skip to content

Instantly share code, notes, and snippets.

@mbj
Created June 17, 2014 19:34
Show Gist options
  • Save mbj/b8e26d92565dc8179b56 to your computer and use it in GitHub Desktop.
Save mbj/b8e26d92565dc8179b56 to your computer and use it in GitHub Desktop.
Example mutant report
Mutant configuration:
Matcher: #<Mutant::Matcher::Scope cache=#<Mutant::Cache> scope=TestApp::Literal>
Strategy: #<Mutant::Rspec::Strategy>
Expect Coverage: 100.00%
TestApp::Literal.string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:22
- rspec:TestApp::Literal#command
- rspec:TestApp::Literal#string
.FFFF
(01/05) 20% - 0.10s
TestApp::Literal#boolean:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:6
- rspec:TestApp::Literal#command
- rspec:TestApp::Literal#string
.FFFF
(01/05) 20% - 0.10s
TestApp::Literal#command:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:10
- rspec:TestApp::Literal#command
.....
(05/05) 100% - 0.06s
TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30
- rspec:TestApp::Literal#command
- rspec:TestApp::Literal#string
.FFFFFFFFFF
(01/11) 9% - 0.21s
TestApp::Literal#string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:14
- rspec:TestApp::Literal#string
.....
(05/05) 100% - 0.06s
TestApp::Literal#symbol:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:26
- rspec:TestApp::Literal#command
- rspec:TestApp::Literal#string
.FFFFF
(01/06) 16% - 0.12s
TestApp::Literal#uncovered_string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:18
- rspec:TestApp::Literal#command
- rspec:TestApp::Literal#string
.FFFF
(01/05) 20% - 0.10s
TestApp::Literal.string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:22
- rspec:TestApp::Literal#command
- rspec:TestApp::Literal#string
evil:TestApp::Literal.string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:22:872a8
@@ -1,4 +1,4 @@
def self.string
- "string"
+ raise
end
evil:TestApp::Literal.string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:22:9e2ac
@@ -1,4 +1,3 @@
def self.string
- "string"
end
evil:TestApp::Literal.string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:22:ad8ce
@@ -1,4 +1,4 @@
def self.string
- "string"
+ nil
end
evil:TestApp::Literal.string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:22:72029
@@ -1,4 +1,4 @@
def self.string
- "string"
+ self
end
TestApp::Literal#boolean:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:6
- rspec:TestApp::Literal#command
- rspec:TestApp::Literal#string
evil:TestApp::Literal#boolean:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:6:4303d
@@ -1,4 +1,4 @@
def boolean
- true
+ raise
end
evil:TestApp::Literal#boolean:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:6:92f71
@@ -1,4 +1,3 @@
def boolean
- true
end
evil:TestApp::Literal#boolean:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:6:11608
@@ -1,4 +1,4 @@
def boolean
- true
+ nil
end
evil:TestApp::Literal#boolean:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:6:a1b2d
@@ -1,4 +1,4 @@
def boolean
- true
+ false
end
TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30
- rspec:TestApp::Literal#command
- rspec:TestApp::Literal#string
evil:TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30:407ef
@@ -1,4 +1,4 @@
def float
- 2.4
+ raise
end
evil:TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30:c7743
@@ -1,4 +1,3 @@
def float
- 2.4
end
evil:TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30:ddb61
@@ -1,4 +1,4 @@
def float
- 2.4
+ nil
end
evil:TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30:7d28b
@@ -1,4 +1,4 @@
def float
- 2.4
+ self
end
evil:TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30:2f50c
@@ -1,4 +1,4 @@
def float
- 2.4
+ 0.0
end
evil:TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30:217be
@@ -1,4 +1,4 @@
def float
- 2.4
+ 1.0
end
evil:TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30:17861
@@ -1,4 +1,4 @@
def float
- 2.4
+ -2.4
end
evil:TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30:b26a3
@@ -1,4 +1,4 @@
def float
- 2.4
+ 0.0 / 0.0
end
evil:TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30:0916d
@@ -1,4 +1,4 @@
def float
- 2.4
+ (-1.0) / 0.0
end
evil:TestApp::Literal#float:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:30:11494
@@ -1,4 +1,4 @@
def float
- 2.4
+ 1.0 / 0.0
end
TestApp::Literal#symbol:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:26
- rspec:TestApp::Literal#command
- rspec:TestApp::Literal#string
evil:TestApp::Literal#symbol:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:26:74d01
@@ -1,4 +1,4 @@
def symbol
- :symbol
+ raise
end
evil:TestApp::Literal#symbol:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:26:cae0f
@@ -1,4 +1,3 @@
def symbol
- :symbol
end
evil:TestApp::Literal#symbol:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:26:f3a13
@@ -1,4 +1,4 @@
def symbol
- :symbol
+ nil
end
evil:TestApp::Literal#symbol:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:26:7c802
@@ -1,4 +1,4 @@
def symbol
- :symbol
+ self
end
evil:TestApp::Literal#symbol:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:26:ee7d1
@@ -1,4 +1,4 @@
def symbol
- :symbol
+ :symbol__mutant__
end
TestApp::Literal#uncovered_string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:18
- rspec:TestApp::Literal#command
- rspec:TestApp::Literal#string
evil:TestApp::Literal#uncovered_string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:18:1f418
@@ -1,4 +1,4 @@
def uncovered_string
- "string"
+ raise
end
evil:TestApp::Literal#uncovered_string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:18:96316
@@ -1,4 +1,3 @@
def uncovered_string
- "string"
end
evil:TestApp::Literal#uncovered_string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:18:04079
@@ -1,4 +1,4 @@
def uncovered_string
- "string"
+ nil
end
evil:TestApp::Literal#uncovered_string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:18:05270
@@ -1,4 +1,4 @@
def uncovered_string
- "string"
+ self
end
Subjects: 7
Mutations: 42
Kills: 15
Alive: 27
Runtime: 0.81s
Killtime: 0.75s
Overhead: 7.49%
Coverage: 35.71%
Expected: 100.00%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment