Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Review / refactor ENTIRE test suite #1412

Open
orenyk opened this issue Jan 7, 2016 · 6 comments
Open

Review / refactor ENTIRE test suite #1412

orenyk opened this issue Jan 7, 2016 · 6 comments

Comments

@orenyk
Copy link
Contributor

orenyk commented Jan 7, 2016

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.

@squidgetx
Copy link
Contributor

diff: 13

@orenyk
Copy link
Contributor Author

orenyk commented Jan 13, 2016

hahaha - we should crank it up to 11 😄

@orenyk
Copy link
Contributor Author

orenyk commented Jan 18, 2016

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.

@orenyk
Copy link
Contributor Author

orenyk commented May 23, 2016

This might be both useful and painful 😛.

@esoterik
Copy link
Collaborator

Under the default configuration, there are 1947 offenses detected by rubocop-rspec on master

@orenyk
Copy link
Contributor Author

orenyk commented Jun 22, 2016

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants