This repository has been archived by the owner on Jul 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Review / refactor ENTIRE test suite #1412
Labels
Milestone
Comments
diff: 13 |
hahaha - we should crank it up to 11 😄 |
We also really need to start using test doubles, they're so much faster than creating db-backed objects, it's insane (see #1433). We could probably cut our test suite time in half just by correctly using them. |
This might be both useful and painful 😛. |
This was referenced Jun 20, 2016
Under the default configuration, there are 1947 offenses detected by rubocop-rspec on master |
Sounds like a party 😄. All these sub-issues are great, we should also remember to use CodeClimate as a guide for better code (ties in #1097). |
This was referenced Jul 15, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
While writing up #1411 it occurred to me that we have a lot of old tests that are probably sub-optimal. Our Travis builds now takes almost 5 minutes, which is really far too long for an app of our complexity and a test suite of our size. I'd like to completely overhaul the test suite, focusing on building a nice test pyramid and avoiding DB hits as much as possible through mocks / stubs.
This is going to be a fairly massive undertaking, so if others are interested in improving their testing skills we can definitely split it up.
The text was updated successfully, but these errors were encountered: