Convert some simpler feature tests to controller and view tests to improve test speed#9158
Merged
mitchellhenke merged 8 commits intomainfrom Sep 7, 2023
Merged
Conversation
75cb0d8 to
35349ff
Compare
7b0adf8 to
0ef4f6e
Compare
zachmargolis
approved these changes
Sep 6, 2023
Contributor
zachmargolis
left a comment
There was a problem hiding this comment.
LGTM! some small suggestions about stubbing
spec/controllers/two_factor_authentication/totp_verification_controller_spec.rb
Outdated
Show resolved
Hide resolved
spec/controllers/users/two_factor_authentication_controller_spec.rb
Outdated
Show resolved
Hide resolved
spec/controllers/users/two_factor_authentication_controller_spec.rb
Outdated
Show resolved
Hide resolved
855c69c to
fa718e4
Compare
changelog: Internal, Test Performance, Convert some simpler feature tests to controller and view tests
…ec.rb Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
…ec.rb Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
fa718e4 to
1f55fdb
Compare
zachmargolis
approved these changes
Sep 7, 2023
380995f to
eb9a0de
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠 Summary of changes
spec/features/users/sign_in_spec.rb is the test file that takes the most time and knapsack only distributes by spec files. The sign_in_spec file is often the only file run in its parallel test runner, and it is still the longest running one. This PR attempts to reduce the time it takes to run this file by moving some of the simpler tests out to more efficient test types and removing one duplicative one.