reek icon indicating copy to clipboard operation
reek copied to clipboard

Run Reek against rubyspec

Open troessner opened this issue 9 years ago • 5 comments

I recently had a chat with @mbj and he suggested the following:

Also I run all checkins for mutants generation engine and unparsers round trip against rubyspec that is a great entropy source. Reek should do the same, maybe disabling reporting / state tracking. Just walking the AST with the engine and making sure it does not crash. Its a great invariant.

I think that's an excellent idea, let's do this.

WDYT?

troessner avatar Oct 29 '15 08:10 troessner

:+1:

chastell avatar Oct 29 '15 22:10 chastell

:+1:

mvz avatar Oct 31 '15 09:10 mvz

I'm blocked the next weeks unfortunately, would anybody else like to tackle this?

troessner avatar Oct 31 '15 09:10 troessner

I have a special test support class for the managing of corpus tests, that might be adaptable for you It assumes you have "many" projects you want to corpus test against: https://github.com/mbj/mutant/blob/master/spec/support/corpus.rb

You likely do not want to use my morpher based "type safe" config loader.

Still this could serve as an example on how to do such a corpus test, I use this code for years already so I should have ironed out the traps that exist in the concept of a corpus test.

mbj avatar Oct 31 '15 13:10 mbj

This is how the config file looks for mutant: https://github.com/mbj/mutant/blob/master/spec/integrations.yml

mbj avatar Oct 31 '15 13:10 mbj