Commit graph

38 commits

Author SHA1 Message Date
Dan Kubb
6cb9c76953 Change Mutant::Killer::Rspec#run to rescue errors from RSpec 2013-06-24 01:38:37 -07:00
Dan Kubb
6a96062153 Fix Mutant::Killer::Forked#run to return true only on a successful exit 2013-06-23 17:29:06 -07:00
Dan Kubb
3f83290538 Fix problem with SIGILL thrown by a different child was being caught
* For some reason other children were throwing SIGILL signals which
  were being caught by Process.wait2. This fixes the problem by only
  waiting for the forked child to finish.
2013-06-23 16:45:54 -07:00
Markus Schirp
47159696e8 Do not rescue arbitrary killer exceptions 2013-06-23 22:22:35 +02:00
Markus Schirp
ddff94c174 Fix style issue
Closes #30
2013-06-21 16:21:29 +02:00
Markus Schirp
1f25ab3ded Cosmetic end comments 2013-06-14 21:12:10 +02:00
Dan Kubb
10b1e106ff Add require stringio temporarily to rspec killer 2013-04-17 20:38:42 -07:00
Dan Kubb
bf06f6b056 Fix code to no longer reference non-existent methods
* This code is not final, but I could not figure out a clean way to
  reference the error and output stream from this method.
2013-04-17 20:34:24 -07:00
Dan Kubb
10321549cd Fix code to use proper method 2013-04-17 20:34:24 -07:00
Dan Kubb
c3c0e06c86 Fix whitespace 2013-04-17 20:31:21 -07:00
Markus Schirp
277a29aba5 Cleanup killers 2013-02-01 23:39:00 +01:00
Markus Schirp
5b3d506523 Reconnect API changes for successful spec run
Sorry this looks like spiking around and yeah it was some kind of.
2013-01-22 00:00:30 +01:00
Markus Schirp
d41d7eddb0 Refactor reporter infrastructure 2013-01-15 23:46:05 +01:00
Markus Schirp
c9d762dbe9 Add better rspec dm2 spec lookup 2013-01-13 23:48:18 +01:00
Markus Schirp
356820c4af Do not explicitly capture StandardError 2013-01-09 23:03:01 +01:00
Markus Schirp
66b09f8d8a Do not rescue all exceptions from mutation insertion 2013-01-08 09:34:24 +01:00
Markus Schirp
c0fa278f19 Count exception between mutation insertion and spec run as kill 2013-01-05 22:59:32 +01:00
Markus Schirp
93556763dd Bring back yard coverage to 100%
Also do some minor refactorings
2012-12-12 22:31:27 +01:00
Markus Schirp
40d5230c68 Introduce noop mutation guards and argument mutators
* Sorry for not splitting up into smaller commit
2012-12-11 00:17:19 +01:00
Markus Schirp
3fc07deaff Make sure mutation is inserted after fork 2012-12-07 18:53:03 +01:00
Markus Schirp
7be00708b6 Improve rspec dm2 strategy
* Expand foo? to foo_predicate_spec.rb
* Expand foo! to foo_bang_spec.rb
* Execute all public method specs on mutation of private method
* Warn on stderr when no spec file was found (better than nothing to be
  iproved later)
2012-12-07 16:57:42 +01:00
Markus Schirp
939e25cb4a Correctly propagnate exit status of forking killers 2012-12-05 16:44:26 +01:00
Markus Schirp
9533a92bb7 Default to forking killer
* Remove rspec world preserving will never work correctly
* Add new unmutated nodes to noop mutators
2012-12-04 19:38:58 +01:00
Markus Schirp
8c3cc4a18c Add rspec world preserve hack 2012-12-04 18:23:56 +01:00
Markus Schirp
70060caf5d Cleanup rspec runner and extract unused code 2012-11-24 17:06:33 +01:00
Markus Schirp
fb8bb2ed24 Add static fail and success strategies
* Useful for benchmarking
2012-11-22 03:00:36 +01:00
Markus Schirp
a5f387eafd Do not nest rspec killer 2012-11-22 02:50:17 +01:00
Markus Schirp
86acb3a409 Cleanup killers and add executable to gemspec 2012-11-22 01:42:10 +01:00
Markus Schirp
dffe2a26e6 Add strategy objects 2012-11-22 00:10:50 +01:00
Markus Schirp
02a909efda Generalize forking and non forking killers 2012-11-21 22:55:53 +01:00
Markus Schirp
dc083547f5 Connect cli with runner.
Only supports the testing of testapp... but time will come!
2012-11-21 22:28:08 +01:00
Markus Schirp
ccbe2f6396 Mark failing specs as panding and use attr_reader again 2012-10-26 11:24:29 +02:00
Markus Schirp
9fcb271637 General source code beautifications 2012-10-19 23:34:19 +02:00
Markus Schirp
3738254317 Cleanup whitespace 2012-08-28 19:43:53 +02:00
Markus Schirp
d6a3ecb00f Allow to select forking rspec killer via subclass 2012-08-28 19:14:10 +02:00
Markus Schirp
459d028de1 Add a working mutation tester for mutant
* Expand attr_reader :name, to def name; @name; end
  As attr_reader defined methods do not have a valid source location.
* Expose more internal state to allow the generation of nice match
  identifications. Needs to be cleaned up.
2012-08-20 17:53:41 +02:00
Markus Schirp
42e6fe84e5 Add runner with reporter
* Use MethodObject mixin
* Rename Context::Constant to Context::Scope
* Use Mutation class instead of passing around raw nodes
2012-08-16 04:10:54 +02:00
Markus Schirp
23ee68ac1e Rename Runner to Killer
* Add working integration spec for rspec (mutant) killer.
2012-08-14 12:27:56 +02:00