toptal / crystalball

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

Add dry-run option #129

Open Neal910 opened 4 years ago

Neal910 commented 4 years ago

This PR is meant to tackle the issue of https://github.com/toptal/crystalball/issues/117

Background: I would like to output the prediction of a list of Rspec tests, so that the Knapsack Gem can accept the string and run the tests in parallel, as described here.

Personally, I came from Java world and am really new to the Ruby, actually this is my first Ruby project. Therefore, I am creating this prototype PR so that I can get more feedback in the beginning. Again, this PR is not meant to be merged but to discuss my proposal. All comments and suggestions are welcoming.

pirj commented 4 years ago

@EPecherkin @jaimerson @pluff I don't have the capacity for CrystalBall right now, appreciate if you could take this over.

Neal910 commented 4 years ago

any suggestions are appreciated. Thanks guys.

Neal910 commented 4 years ago

so far it's working with --dry-run , it's printing out the rspec list. Then I use sed to manipulate the output to be acceptable to Knapsack tools.

jacob-s-son commented 2 years ago

Hey, folks! I am planning to work on a POC next week to implement selective running of RSPEC and Cucumber tests that are load balanced by Knapsack Pro. Any guidance on the status of this PR? Any reason it can't be merged into mainstream? Maybe something I can help with?