toptal / crystalball

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

Implement weights "pruning" logic #116

Open pirj opened 5 years ago

pirj commented 5 years ago

By this point, we should have an extension point for custom pruning logic.

We need another class that implements weights based on pruning logic.

E.g. with:

# crystalball.yml
weights:
 - ["/app/models/*", 10]
 - ["/app/controllers/*", 5]
 - ["/app/mailers/*", 1]

Crystalball should fill examples limit to closest possible ratio as in weights.