toptal / crystalball

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

Flag the strategy used to predict files in case map #81

Closed jaimerson closed 6 years ago

jaimerson commented 6 years ago

This will allow us to select only the specs that were inferred by individual strategies at prediction time. That way we can choose between faster predictions with lower precision or thorough ones.

Example case map

"./spec/class1_spec.rb[1:1:1]":
  coverage_strategy:
  - spec/support/shared_examples/module1.rb
  - lib/module1.rb
  - lib/class1.rb
  allocated_objects_strategy:
  - lib/class1.rb
  - lib/class1_reopen.rb
  - lib/module1.rb
  described_class_strategy:
  - lib/class1.rb
  - lib/class1_reopen.rb
  - lib/module1.rb
  parser_strategy:
  - lib/module1.rb