Skip to content

Instantly share code, notes, and snippets.

@amyroi
Created August 29, 2017 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amyroi/a4549c481c90dc74055236a35c1cc9b2 to your computer and use it in GitHub Desktop.
Save amyroi/a4549c481c90dc74055236a35c1cc9b2 to your computer and use it in GitHub Desktop.
rspec config.radom 依存を探す
# first CIで落ちたseedを指定
$ bin/spring rspec spec -fd --order rand:40433
# second 対象のspec前のspecでデータ周り、前提条件で依存している為ディレクトリずつ実行してみる。
$ bin/spring rspec spec/models/ spec/features/failer_spec.rb -fd --order rand:40433 --fail-fast
# third ディレクトリを変えて絞っていく
$ bin/spring rspec spec/lib/ spec/features/failer_spec.rb -fd --order rand:40433 --fail-fast
# loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment