toptal / crystalball

Regression Test Selection library for your RSpec test suite
https://toptal.github.io/crystalball/
MIT License
322 stars 41 forks source link

[CB-23] Predict failures like changed validations of a model #28

Closed EPecherkin closed 6 years ago

EPecherkin commented 6 years ago

Add new DirectMapPredictor

A developer is able to specify regexp to match specific source files to specific spec files. It will add proper spec files to a prediction set if matched source files were changed

predictor.use Crystalball::Predictor::DirectMapPredictor.new from: /lib\/models\/(.*).rb/,
                                                             to: './spec/models/%s_spec.rb'

Should be merged after https://github.com/toptal/crystalball/pull/24