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

Randomness in Testing - Paul Grayson

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Las Vegas Ruby Group Las Vegas Ruby Group
September 25, 2013
57

Randomness in Testing - Paul Grayson

Avatar for Las Vegas Ruby Group

Las Vegas Ruby Group

September 25, 2013
Tweet

Transcript

  1. Note: fuzz tests generally more simple-minded Things to Fuzz test

    for: • exceptions or other bad behavior • outputs consistent with inputs • exact answer for a simplified domain (hard!)
  2. Test order dependence • Ideal: tests are independent • DO

    NOT use objects created out of the context • DO NOT break when other objects exist
  3. When a test fails... • Write a test that always

    fails, or fix the tests • Re-use the seed to debug rspec --seed 1234