You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Automate test suite trimming for debugging #372
Sometimes, when a test suite fails in its browser id, it could be caused by a combination of other test suites in the same browser id.
It would be cool to have an option to re-run the browser id replays and remove any test suite that are determined unnecessary for reproducing test failures, so we are left with the minimum amount of tests needed to reproduce the failure.
@step2yeung has worked on test bisecting to find a smallest set of test modules to reproduce test failure. @step2yeung, could you be able to provide plans/status on the feature?
Putting it here just in case there it is mathematically not completely stupid idea. Just pseudo-code, but I hope it captures the idea.
letall_tests=[...];// each test is given unique IDletX= ...;// order number of offending test, user will have to provide this (?)letoffending_tests=all_tests;// at start every test can be the problematic oneletN= ...;// number of iterations to go though, user will have to provide this (?)for(vari=0;i<N;i++){// repeat only N timesexam.runWithArgs(`--random=${i}`);// run ember exam with new seed each timeif(exam.testFailed(X)){// if the test we're interested in failedletfailed_after=exam.failedAfter(X);// give me the list of tests that ran *after* my testoffending_tests=array_substract(offending_tests,failed_after);// those tests won't be the problematic ones}}
Activity
choheekim commentedon Sep 25, 2019
@step2yeung has worked on
test bisectingto find a smallest set of test modules to reproduce test failure. @step2yeung, could you be able to provide plans/status on the feature?step2yeung commentedon Sep 28, 2019
So far, there hasn't been planned work to take the proof of concept into full implementation.
MichalBryxi commentedon Oct 7, 2019
Putting it here just in case there it is mathematically not completely stupid idea. Just pseudo-code, but I hope it captures the idea.