Commit graph

34 commits

Author SHA1 Message Date
Markus Schirp
49133680ee Add AST caching for subject matcher
At least this dramatically speeds up unit tests. And this is a good
thing.
2013-06-27 22:18:07 +02:00
Dan Kubb
84e4add8c2 Fix code alignment in specs 2013-06-25 00:37:45 -07:00
Markus Schirp
c4ce08e3b8 Display original code in shared mutator error message 2013-06-23 21:57:44 +02:00
Markus Schirp
75409b0199 Fix misspelling in shared mutator behavior 2013-06-21 23:53:34 +02:00
Markus Schirp
20418d0969 Use positive branching in shared mutatro examples 2013-06-21 19:10:16 +02:00
Markus Schirp
f0870d0043 Use single quotes for non interpolated string literal 2013-06-21 18:45:13 +02:00
Markus Schirp
ee6b8ddb71 Fix spelling 2013-06-21 16:14:34 +02:00
Markus Schirp
1d027d3443 Remove complexity in shared mutator examples 2013-06-21 15:07:40 +02:00
Markus Schirp
2d9da54041 Fix begin mutator 2013-06-14 21:11:54 +02:00
Markus Schirp
ededf82ebe Port single variable assignment mutator to parser 2013-06-14 21:11:54 +02:00
Markus Schirp
90aa3589fa Port mutation generator infrastructure to parser 2013-06-14 21:11:54 +02:00
Markus Schirp
fca5b8a168 Port method extraction to parser based ast 2013-06-14 21:11:54 +02:00
Markus Schirp
ecb5be355f Add unit spec for singleton method matchers
Also remove old method integration spec
2013-04-27 18:07:04 +02:00
Markus Schirp
1114a156e5 Use Devtools.init_spec_helper 2013-02-24 19:54:41 +01:00
Markus Schirp
a7226482a3 Fix "idempotent method" shared example helper
rspec-2.13.0 changed the way the subject is exposed.
We do not have access to the block anymore.
Need to delete memoized value from the __memoized hash to reset subject.
2013-02-24 18:35:43 +01:00
Markus Schirp
a0933916ca Simplify method matching integration spec
Should be converted to a unit spec soon
2013-01-14 12:54:53 +01:00
Markus Schirp
97a75dd062 Cleanup mutation generation
This is a reaction to the to_source rewrite

* Do not use 1.8 specific nodes anymore
* Do not generate AST nodes that would not be generatable from source
2013-01-09 20:43:06 +01:00
Markus Schirp
3dc23c5238 Mutate method call receivers 2012-12-29 16:12:55 +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
b5430e2000 Cleanup crashes and invalid mutants 2012-12-07 23:27:21 +01:00
Markus Schirp
5a2f71abec Fix shared mutator spec failure reporting 2012-12-06 19:51:48 +01:00
Markus Schirp
000380c1e0 Emit vcall mutation again 2012-12-06 12:32:16 +01:00
Markus Schirp
583668138e Add mutations on singleton methods
* Fixing singleton matcher to return Rubiniuy::AST::DefineSingleton
  and not Rubinius::AST::DefineSingletonScope
* Adjust counts of runner spec
2012-08-16 19:10:24 +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
d20655f4c2 Add a spike runner 2012-08-14 22:45:34 +02:00
Markus Schirp
6f8d4e1cfa Do not create empty blocks on mutations 2012-08-13 20:40:00 +02:00
Markus Schirp
5e7600e573 Refactor spec on method filter parsing 2012-08-09 19:38:36 +02:00
Markus Schirp
8810c6e009 Rename Mutantee to Subject 2012-08-01 18:34:03 +02:00
Markus Schirp
414c572d03 Rename shared mutation examples 2012-08-01 14:58:24 +02:00
Markus Schirp
fb7bb942a3 Add mutation of simple send without arguments
* Lets the block spec work again as 1.8 and 1.9 mode do not behave
  differend as with literals.
2012-08-01 13:53:28 +02:00
Markus Schirp
b9b95ebe94 Break up mutation spec in class specific files
* Also add mutation class registry to improve readability.
* Calling mutations are still broken.
2012-08-01 13:27:35 +02:00
Markus Schirp
d50ecc483d Cleanup missing whitespace after comma
* There must be a code metric tool helping me in converting my style.
2012-07-31 04:10:37 +02:00
Markus Schirp
10c3dfc390 Finalize method matching
* Add tests for all edge cases I could create
* Add infrastructure for loading mutations into the vm.
* The fun part is next!
2012-07-26 19:25:23 +02:00
Markus Schirp
df6ccafeab Add method matcher infrastructure
Needs more specs for sure. Especially edge cases.
2012-07-23 22:54:35 +02:00