Skip to content

Instantly share code, notes, and snippets.

View pyromaniackeca's full-sized avatar

Nemanja Keča pyromaniackeca

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pyromaniackeca on github.
  • I am pyromaniackeca (https://keybase.io/pyromaniackeca) on keybase.
  • I have a public key ASDXVISdpnVfcYr8hXy0lQn1LI5CeCm2ZzG6-L3uZqO7dwo

To claim this, I am signing this object:

Biggest sources of flaky tests (from our experience)

FactoryGirl

When using FactoryGirl to create records in tests, it is necessary to be aware that you are usually creating a lot more records than is obvious in the code. While this is usually harmless aside from slowing down tests, it is capable of creating some mind boggling flakiness. Some scenarios where this is probable are tests that count the number of records, tests that are expecting a certain record and assume that only it exists. Improperly set model level validations can also contribute to this.

Timestamps