Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fight flaky specs with RSpec

Wu Qing
November 08, 2016

Fight flaky specs with RSpec

Presented at November 2016 meetup of Rorosyd - Ruby or Rails User Group Sydney
https://www.meetup.com/Ruby-On-Rails-Oceania-Sydney/events/232860358/

Wu Qing

November 08, 2016
Tweet

More Decks by Wu Qing

Other Decks in Programming

Transcript

  1. Example » Repo with 3000+ specs » The build takes

    about 10 minutes » Build failed six times in a row
  2. step 4 Round 1: bisecting over non-failing examples 1-3128 .

    ignoring examples 1-1564 (6 minutes 29 seconds) . . Round 11: ... Bisect complete! Reduced necessary non-failing examples from 3128 to 1 in 18 minutes 49 seconds.