toptal / crystalball

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

Proper configuration #110

Open ghost opened 5 years ago

ghost commented 5 years ago

First, this project is brilliant, thank you. Our CI will hopefully benefit.

If I wanted to modify/augment the prediction approach, should I just tweak standard_prediction_builder.rb in lib/crystalball/rspec?

I'm not entirely clear how to point crystalball to a custom prediction builder class.

pluff commented 5 years ago

@jenkins-infotech you need to extend StandardPredictionBuilder or create your own builder. Then you need to set configuration option while trying to run crystalball runner. Check out configuration docs and example configuration file

In your particular case you need to specify prediction_builder_class_name: configuration option and set proper path to requires: option so crystalball knows where to find your custom builder.

Hope it helps. Sorry for incomplete docs, PRs are welcome here: https://github.com/toptal/crystalball/tree/master/docs

ghost commented 5 years ago

No problem at all. I’ll figure it out.

Is there any way to visualize the map data? I’d like to understand the relation between the spec files & the code files.

Thanks, Shaun

ghost commented 5 years ago

Pavel, a couple quick questions:

Appreciate some help, Shaun McArthur

ghost commented 5 years ago

For example, with log_level set to ‘debug’ in my crystalball.yml,

All that I see is: D, [2019-07-02T15:45:36.694582 #27528] DEBUG -- : Prediction: I, [2019-07-02T15:45:36.694660 #27528] INFO -- : Starting RSpec.

Does this mean the prediction method is undefined?