crystalball
crystalball copied to clipboard
Get prediction as a list in STDOUT
Crystalball needs to be able to list predicted examples without actually running them. It's useful for further load balancing with Knapsack\whatever.
Proposed interface:
crystalball --dry-prediction
which outputs a list of predicted examples one per line.
Related to #112
It would also make Cucumber Support a lot easier
Any update on this? or alternative ways? Thanks.
A pull request is welcome!
With my prototype PR above, I have been able to output the prediction lists. However per each path the format is something like this ./spec/models/**/create_line_items_spec.rb[1:1:1:1:2]
.
Is there a way to make the output using line number instead of this [1:1:1:2] structure? Because line number is accepted by most of the rspec framework.
Couldn't quickly find it in the docs, but RSpec understands [1:1:1:1:2]
as well.
Spec address based on line number doesn't work well with shared examples or cycles, that's why 🔮 uses example id.