crystalball
crystalball copied to clipboard
Proper configuration
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.
@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
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
Pavel, a couple quick questions:
- How do I turn on verbose logging ?
- CRYSTALBALL_EXAMPLES_LIMIT=5 doesn’t seem to do anything as an environment variable nor .yml config
Appreciate some help, Shaun McArthur
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?