Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get prediction as a list in STDOUT #117

Open
pirj opened this issue Jul 11, 2019 · 6 comments
Open

Get prediction as a list in STDOUT #117

pirj opened this issue Jul 11, 2019 · 6 comments
Labels
feature request an issue that asks for a feature which is not supported yet help wanted

Comments

@pirj
Copy link
Contributor

pirj commented Jul 11, 2019

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

@pirj pirj added feature request an issue that asks for a feature which is not supported yet help wanted labels Jul 11, 2019
@henrich-m
Copy link
Contributor

It would also make Cucumber Support a lot easier

@Neal910
Copy link

Neal910 commented Aug 20, 2020

Any update on this? or alternative ways? Thanks.

@pirj
Copy link
Contributor Author

pirj commented Aug 20, 2020

A pull request is welcome!

@Neal910
Copy link

Neal910 commented Sep 16, 2020

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.

@pirj
Copy link
Contributor Author

pirj commented Sep 17, 2020

Couldn't quickly find it in the docs, but RSpec understands [1:1:1:1:2] as well.

@pluff
Copy link
Contributor

pluff commented Sep 17, 2020

Spec address based on line number doesn't work well with shared examples or cycles, that's why 🔮 uses example id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request an issue that asks for a feature which is not supported yet help wanted
Projects
None yet
Development

No branches or pull requests

4 participants