toptal / crystalball

Regression Test Selection library for your RSpec test suite

Home Page:https://toptal.github.io/crystalball/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide an extension point for prediction "pruning" logic

pirj opened this issue · comments

Currently, we have no weights logic at all.
We pick the first X examples to run in case prediction size is bigger than the specified limit.

Sometimes it leads to predictions with critical tests ignored. We need to extract prediction "pruning" logic to separate class so we alter behaviour with different strategies.

Future expected strategies:

  • First tests
  • Random tests
  • Tests with weights

Expected outcome

A class that encapsulates current logic ('first tests') that can be easily substituted with a different class with different logic.