Skip to content
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

Rework tests to minimise app reinitialisation #2019

Merged
merged 1 commit into from
Apr 17, 2023
Merged

Conversation

knolleary
Copy link
Member

Part of #2004

This refactors 4 of the more 'expensive' tests to minimise the number of times they restart the forge app.

  • test/unit/forge/routes/api/teamMembers_spec.js
  • test/unit/forge/routes/api/user_spec.js
  • test/unit/forge/routes/api/users_spec.js
  • test/unit/forge/routes/storage/index_spec.js

Prior to these changes, running these four test suites took ~1m30s. With these changes they take ~25s.

@Steve-Mcl Steve-Mcl merged commit e78d60a into main Apr 17, 2023
@Steve-Mcl Steve-Mcl deleted the 2004-rework-api-tests branch April 17, 2023 23:09
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