-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revamp specs to stop relying on seeded data #4199
Comments
I'll take this. I've been wanting to look over the specs and evaluate which specs can be changed system => request, request => model/service, etc. |
You got it! Note that this issue doesn't really touch the system -> request movement - although I'm happy to take any PRs on that account as well. You're free to pick whichever one strikes your fancy. IMO this one is more generally useful though, since it affects literally every single test. |
This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned. |
Automatically unassigned after 7 days of inactivity. |
Summary
Currently, our specs create the following data before every single test:
These are set to instance variables.
This causes all of our specs to be significantly slower since a huge number of specs do not need all this data. It also makes them confusing since it relies on data that was factory-created rather than specifying the data it knows and cares about.
We should do the following:
skip_items
trait. We may want to add some additional traits (e.g.with_items
for organizations) for the rare cases where we actually do need those 45 items.skip_items
trait, and theseed_items
call.Things to consider
No response
Criteria for Completion
No response
The text was updated successfully, but these errors were encountered: