consolidated StudioTestCase and BaseTestCase#3352
consolidated StudioTestCase and BaseTestCase#3352bjester merged 2 commits intolearningequality:unstablefrom
Conversation
bjester
left a comment
There was a problem hiding this comment.
The setUp method of a test case runs before every test case method. The code moved into the StudioTestCase.setUp creates a few test fixtures such as a new channel with a tree structure of multiple nodes and a user added as an editor. It's worth considering the impact of how many times that will run in our test suite after this change, so I would like to request some benchmarks from timing the entire test suite before and after this change. There are about 23 test cases using this test case that will now have these fixtures created when they won't be used, and could end up slowing down the test suite.
In the spirit of the original issue, I'm also curious if those BaseTestCase instances should use the StudioAPITestCase instead, seeing as in this change we moved two identical methods that exist in StudioAPITestCase. That might require further tweaks
59e2b2b to
111d1f9
Compare
|
Hi @bjester sir, I have tried to delegate the functionality of StudioTestCase and BaseTestCase SetUp method into two different functions so that we do not need to create fixtures again and again. |
bjester
left a comment
There was a problem hiding this comment.
Great! Thanks for conditionalizing the fixture generation
Summary
Consolidated StudioTestCase with BaseTestCase
Reviewer guidance
All test should pass.
Are there any risky areas that deserve extra testing?
References
closes #1076
Comments
Contributor's Checklist
PR process:
CHANGELOGlabel been added to this PR. Note: items with this label will be added to the CHANGELOG at a later timedocslabel has been added if this introduces a change that needs to be updated in the user docs?requirements.txtfiles also included in this PRStudio-specifc:
notranslateclass been added to elements that shouldn't be translated by Google Chrome's automatic translation feature (e.g. icons, user-generated text)pages,components, andlayoutsdirectories as described in the docsTesting:
Reviewer's Checklist
This section is for reviewers to fill out.
yarnandpip)Co-authored-by: Vivek Agrawal vivekmittalagrawal@gmail.com
@vkWeb