All Questions
Tagged with mutation-testing ruby
10 questions
1
vote
1
answer
142
views
How to pass in arguments to mutant-rspec?
I'm trying to use the mutant-rspec library on a project that has the following directory structure
app
backend
spec
someclass_spec.rb
src
someclass.rb
frontend
I want to see ...
0
votes
1
answer
1k
views
Mutation Testing with Rspec
I'm attempting to perform a mutation-test on some ruby code using rspec. I am just learning ruby and I don't really know if I'm doing it right. Part of the code I'm trying to test is:
class Cipher
...
1
vote
0
answers
287
views
Trying to add mutation testing
I'm trying to add mutation testing to a rails project, with
gem 'mutant-rspec'
in the Gemfile, which seems to install it correctly with bundler
Resolving dependencies...
...
Using mutant 0.8.12
...
4
votes
1
answer
153
views
Understanding Mutant Failures
I have the following ActiveRecord model class method:
def self.find_by_shortlink(shortlink)
find_by!(shortlink: shortlink)
end
When I run Mutant against this method, I'm told there were 17 ...
1
vote
0
answers
180
views
mutant doesn't find test examples
In a 'hexx-null' gem I have a file:
# lib/hexx/null.rb
module Hexx
class Null
# ...
end
end
The RSpec specification file is:
# spec/tests/null_spec.rb
describe Hexx::Null do
describe "....
4
votes
1
answer
751
views
Mutation testing: does anybody know mutant?
Yesterday a stumble in this article on Mutation Testing and immediatly had a try with elasticrepo a lib I'm writing to index github on elasticsearch.
Unfurtunatly it seems I'm missing something, ...
14
votes
2
answers
1k
views
Are there any good mutation testing tools for ruby 1.9 and RSpec2?
I used to use Heckle, but it is incompatible with ruby 1.9 because of issues with ParseTree. I've looked for alternatives, but the only thing that looked promising was Chaser, and that did not have ...
1
vote
3
answers
211
views
What is the ruby test tool called that 'breaks' your code to see how tight your tests are?
A wee while ago I ended up on a page which hosted several ruby tools, which had 'crazy' names like 'mangler' or 'executor' or something. The tool's job was to modify you production code (at runtime) ...
6
votes
3
answers
878
views
Making unit tests fail quickly for mutation testing
One problem encountered with mutation testing is that it's slow, because by default you do a full test run (either a test file, or a suite of test files) for each mutation generated.
One way to make ...
2
votes
2
answers
2k
views
How compatible are rspec and heckle?
I'm currently using test/unit, and I'm considering using rspec. However, I've noticed that rspec currently doesn't support heckle in ruby 1.9.1, and doesn't support passing any parameters to heckle ...