toptal / crystalball

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

NoMethodError with empty examples #127

Open AlexeyMatskevich opened 4 years ago

AlexeyMatskevich commented 4 years ago
❯ crystalball            
I, [2020-06-25T13:58:05.413206 #24937]  INFO -- : Crystalball starts to glow...
Traceback (most recent call last):
    15: from /home/alexeymatskevich/.rbenv/versions/2.7.1/bin/crystalball:23:in `<main>'
    14: from /home/alexeymatskevich/.rbenv/versions/2.7.1/bin/crystalball:23:in `load'
    13: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/bin/crystalball:5:in `<top (required)>'
    12: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/runner.rb:45:in `invoke'
    11: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/rspec/runner.rb:19:in `run'
    10: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/rspec/runner.rb:72:in `build_prediction'
    9: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/rspec/prediction_builder.rb:17:in `prediction'
    8: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/predictor.rb:30:in `prediction'
    7: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/predictor.rb:44:in `predict!'
    6: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/predictor.rb:44:in `flat_map'
    5: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/predictor.rb:44:in `each'
    4: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/predictor.rb:44:in `block in predict!'
    3: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/predictor/modified_execution_paths.rb:21:in `call'
    2: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/predictor/strategy.rb:12:in `call'
    1: from /home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/predictor/modified_execution_paths.rb:22:in `block in call'
/home/alexeymatskevich/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/crystalball-0.7.0/lib/crystalball/predictor/helpers/affected_example_groups_detector.rb:13:in `detect_examples': undefined method `map' for nil:NilClass (NoMethodError)

There are no tests in my application crystalball_data.yml:

---
:type: Crystalball::ExecutionMap
:commit: 50c5c73bd645e7f7893a8d50235834331874e233
:timestamp: 1593081312
:version: