Skip to content

Convert some simpler feature tests to controller and view tests to improve test speed#9158

Merged
mitchellhenke merged 8 commits intomainfrom
mitchellhenke/convert-some-sign-in-feature-specs
Sep 7, 2023
Merged

Convert some simpler feature tests to controller and view tests to improve test speed#9158
mitchellhenke merged 8 commits intomainfrom
mitchellhenke/convert-some-sign-in-feature-specs

Conversation

@mitchellhenke
Copy link
Contributor

@mitchellhenke mitchellhenke commented Sep 6, 2023

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

{
 "spec/features/users/sign_in_spec.rb"=>365.684857889,
# ⬆️
 "spec/features/accessibility/idv_pages_spec.rb"=>311.30431135,
 "spec/features/accessibility/user_pages_spec.rb"=>284.783216708,
 "spec/features/idv/in_person_spec.rb"=>256.036439207,
 "spec/features/idv/steps/phone_step_spec.rb"=>212.701576452,
 "spec/features/remember_device/sp_expiration_spec.rb"=>210.965194528,
 "spec/features/openid_connect/openid_connect_spec.rb"=>175.398915327,
 "spec/features/users/sign_up_spec.rb"=>147.282360199,
 "spec/features/idv/sp_handoff_spec.rb"=>123.087861688,
 "spec/features/idv/doc_auth/verify_info_step_spec.rb"=>119.300631601,
# ...
}

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/convert-some-sign-in-feature-specs branch from 75cb0d8 to 35349ff Compare September 6, 2023 19:42
@mitchellhenke mitchellhenke marked this pull request as ready for review September 6, 2023 21:01
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/convert-some-sign-in-feature-specs branch 4 times, most recently from 7b0adf8 to 0ef4f6e Compare September 6, 2023 22:01
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! some small suggestions about stubbing

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/convert-some-sign-in-feature-specs branch 2 times, most recently from 855c69c to fa718e4 Compare September 7, 2023 14:52
Mitchell Henke and others added 6 commits September 7, 2023 10:31
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>
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/convert-some-sign-in-feature-specs branch from fa718e4 to 1f55fdb Compare September 7, 2023 16:35
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/convert-some-sign-in-feature-specs branch from 380995f to eb9a0de Compare September 7, 2023 19:11
@mitchellhenke mitchellhenke merged commit e260f6d into main Sep 7, 2023
@mitchellhenke mitchellhenke deleted the mitchellhenke/convert-some-sign-in-feature-specs branch September 7, 2023 19:51
@aduth aduth mentioned this pull request Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants