Closed Akhilesh-max closed 6 days ago
Hi @Akhilesh-max please assign the required reviewer(s) for this PR. Thanks!
Hi @Akhilesh-max, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 4 days, it will be automatically closed so that others can take up the issue. If you are still working on this PR, please make a follow-up commit within 4 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!
@Akhilesh-max Why did you remove the reviewer request for @U8NWXD? I think getting feedback from someone with more expertise on concerns and practices related to Dev Workflow would be helpful.
I have drafted the PR, as I was bit unsure of the solution, I will request them for review, once the PR is ready for review. Thanks.
@StephenYu2018 @seanlip
I’ve configured the acceptance test to stop the suite on the first failure, even if it’s in the setup (beforeAll).
However, for e2e tests, wdio does not provide any build in way to achieve this. I referred to this issue and tried introducing framework (Jasmine) specific options in the wdio.conf.js
, but it didn’t help.
I guess, could we implement a custom fail-fast mechanism in the ‘AfterEach’?`, but, would we want that? Also, I am still looking into that.
For the time being, I have updated the PR description for configuring the behavior only for acceptance test. And, will do so for the e2e test in another PR once have found a working solution. Thanks.
Interestingly, in wdio tests, we can configure to stop executing all other suits, once a fixed number of suits fails. I guess, we may want that, do we?
@StephenYu2018 @seanlip @U8NWXD PTAL
Unassigning @Akhilesh-max since a re-review was requested. @Akhilesh-max, please make sure you have addressed all review comments. Thanks!
@Akhilesh-max Thanks for the heads-up. Please file a separate issue to do this for wdio tests, and link to any conversation/docs you found on the topic and summarize our current understanding of where things are -- then let's leave that issue for later. Thanks!
@seanlip, If I got you correct, In the 'after' screenshot, the test suite failed during the setup phase itself, which is why no specific test name is displayed (and 'suit error' is thrown, which has no name) . This is different from the 'before' screenshot, where a specific test ('it' block) failed, hence the test name is shown.
However, even after the fix, if any test fails, it does shows the name. When the first test in the suit fails.
when the later ones fail.
Additionally, in wdio e2e tests, introducing jasmine specific options, works actually. Have addressed that as well. Updated the PR description with the before and after of the implementation.
PTAL.
Unassigning @Akhilesh-max since a re-review was requested. @Akhilesh-max, please make sure you have addressed all review comments. Thanks!
Unassigning @StephenYu2018 since they have already approved the PR.
Unassigning @seanlip since they have already approved the PR.
Hi @Akhilesh-max, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to merge this PR once the CI checks pass and you're happy with it. Thanks!
Overview
Essential Checklist
Please follow the instructions for making a code change.
Proof that changes are correct
Before (Acceptance tests)
After (Acceptance tests)
Before (e2e Wdio tests)
https://github.com/oppia/oppia/assets/124369508/542ccb0c-a22b-4ec7-934a-1026ea7fc62b
After (e2e Wdio tests)
https://github.com/oppia/oppia/assets/124369508/be57b5c2-be18-4fb5-aaff-4fccb791391b
PR Pointers