RESOLVED FIXED 175908
Speedometer 2.0: Add the capability to run a specific suite
https://bugs.webkit.org/show_bug.cgi?id=175908
Summary Speedometer 2.0: Add the capability to run a specific suite
Ryosuke Niwa
Reported 2017-08-23 14:56:20 PDT
Add the capability to run a specific test suite to Speedometer's main test runner.
Attachments
Adds the feature (2.99 KB, patch)
2017-08-23 15:12 PDT, Ryosuke Niwa
no flags
Updated change log (3.14 KB, patch)
2017-08-23 15:13 PDT, Ryosuke Niwa
saam: review+
Ryosuke Niwa
Comment 1 2017-08-23 15:12:20 PDT
Created attachment 318926 [details] Adds the feature
Ryosuke Niwa
Comment 2 2017-08-23 15:13:19 PDT
Created attachment 318928 [details] Updated change log
Ryosuke Niwa
Comment 3 2017-08-23 16:04:15 PDT
Radar WebKit Bug Importer
Comment 4 2017-08-23 16:04:49 PDT
Joseph Pecoraro
Comment 5 2017-08-23 16:12:40 PDT
Comment on attachment 318928 [details] Updated change log View in context: https://bugs.webkit.org/attachment.cgi?id=318928&action=review > PerformanceTests/Speedometer/resources/main.js:160 > + if (currentSuite.name.toLowerCase() == suiteToEnable) { > + currentSuite.disabled = false; > + found = true; Can there be duplicate names? If not, then you can `return true` here instead of continuing to loop. > PerformanceTests/Speedometer/resources/main.js:168 > + var enabledSuites = Suites.filter(function (suite) { return !suite.disabled; }); This seems to be a duplicate of line 200 with no change between now and then. Seems this line can be removed. > PerformanceTests/Speedometer/resources/main.js:192 > + alert('No tests to run'); This might be more useful to include the name of the one test that no longer exists: alert('Suite "' + value + '" does not exist. No tests to run.');
Ryosuke Niwa
Comment 6 2017-08-23 17:00:10 PDT
(In reply to Joseph Pecoraro from comment #5) > Comment on attachment 318928 [details] > Updated change log > > View in context: > https://bugs.webkit.org/attachment.cgi?id=318928&action=review > > > PerformanceTests/Speedometer/resources/main.js:160 > > + if (currentSuite.name.toLowerCase() == suiteToEnable) { > > + currentSuite.disabled = false; > > + found = true; > > Can there be duplicate names? If not, then you can `return true` here > instead of continuing to loop. No, but we still have to set currentSuite.disabled to true in all other suite objects. > > PerformanceTests/Speedometer/resources/main.js:168 > > + var enabledSuites = Suites.filter(function (suite) { return !suite.disabled; }); > > This seems to be a duplicate of line 200 with no change between now and > then. Seems this line can be removed. Oops, removed. > > PerformanceTests/Speedometer/resources/main.js:192 > > + alert('No tests to run'); > > This might be more useful to include the name of the one test that no longer > exists: > > alert('Suite "' + value + '" does not exist. No tests to run.'); Fixed.
Ryosuke Niwa
Comment 7 2017-08-23 17:00:57 PDT
Note You need to log in before you can comment on or make changes to this bug.