我rspec --bisect在Circleci上运行时看到一些意外的行为。通常,二等分会无限期运行,直到5小时后超时。二分法最初似乎在起作用,但是一旦达到预期的终点,它就会开始缓慢地以相反的方向检查子集,直到超时为止。
我的环境:
Ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]
RSpec 3.7
- rspec-core 3.7.1
- rspec-expectations 3.7.0
- rspec-mocks 3.7.0
- rspec-rails 3.7.2
- rspec-support 3.7.1
命令:
DISABLE_SPRING=true RAILS_ENV=test bundle exec rspec #{all_specs} --order rand:21237 --bisect
Running suite to find failures... (1 minute 5.94 seconds)
Starting bisect with 1 failing example and 424 non-failing examples.
Checking that failure(s) are order-dependent... failure appears to be order-dependent
Round 1: bisecting over non-failing examples 1-424 .. multiple culprits detected - splitting …Run Code Online (Sandbox Code Playgroud)