Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29874649: Issue 6822 - Report browser test errors (Closed)

Created:
Sept. 4, 2018, 7:03 p.m. by hub
Modified:
Sept. 21, 2018, 4:17 p.m.
CC:
tlucas
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Issue 6822 - Report browser test errors

Patch Set 1 #

Total comments: 6

Patch Set 2 : Updated patch #

Patch Set 3 : Also report from the chrome-remote-interface #

Patch Set 4 : Minor reformat #

Total comments: 11

Patch Set 5 : Updated patch #

Total comments: 4

Patch Set 6 : Remove the finally() from the promise #

Patch Set 7 : Properly ensure webdriver quit #

Patch Set 8 : Reformating #

Patch Set 9 : Fix error reporting #

Total comments: 2

Patch Set 10 : Wait on the driver.quit() promise #

Patch Set 11 : eslint fixes #

Total comments: 15

Patch Set 12 : throw instead of Promise.reject() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -35 lines) Patch
M test/browser/_bootstrap.js View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M test/runners/chromium_process.js View 1 2 3 4 5 6 1 chunk +2 lines, -9 lines 0 comments Download
M test/runners/chromium_remote_process.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download
M test/runners/firefox_process.js View 1 2 3 4 5 6 1 chunk +3 lines, -9 lines 0 comments Download
M test/runners/webdriver.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +19 lines, -8 lines 0 comments Download
M test_runner.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +14 lines, -7 lines 0 comments Download

Messages

Total messages: 21
hub
Sept. 4, 2018, 7:03 p.m. (2018-09-04 19:03:25 UTC) #1
hub
I have tested with an actual failure in the browser test. Also if we move ...
Sept. 4, 2018, 7:04 p.m. (2018-09-04 19:04:56 UTC) #2
Manish Jethani
Sorry about the slightly superficial review so far, I'll dig deeper into this tomorrow. https://codereview.adblockplus.org/29874649/diff/29874650/test/browser/_bootstrap.js ...
Sept. 5, 2018, 7:47 p.m. (2018-09-05 19:47:22 UTC) #3
hub
updated patch. https://codereview.adblockplus.org/29874649/diff/29874650/test/browser/_bootstrap.js File test/browser/_bootstrap.js (right): https://codereview.adblockplus.org/29874649/diff/29874650/test/browser/_bootstrap.js#newcode49 test/browser/_bootstrap.js:49: if (typeof window.consoleLogs === "undefined") On 2018/09/05 ...
Sept. 6, 2018, 1 a.m. (2018-09-06 01:00:13 UTC) #4
Manish Jethani
I've looked into this a little more today. First of all, from strictly the point ...
Sept. 11, 2018, 3:22 p.m. (2018-09-11 15:22:13 UTC) #5
Manish Jethani
On 2018/09/11 15:22:13, Manish Jethani wrote: > First of all, from strictly the point of ...
Sept. 11, 2018, 3:24 p.m. (2018-09-11 15:24:36 UTC) #6
Manish Jethani
On 2018/09/11 15:24:36, Manish Jethani wrote: > On 2018/09/11 15:22:13, Manish Jethani wrote: > > ...
Sept. 11, 2018, 3:31 p.m. (2018-09-11 15:31:05 UTC) #7
hub
On 2018/09/11 15:22:13, Manish Jethani wrote: > - When the tests fail on Firefox, it ...
Sept. 11, 2018, 3:46 p.m. (2018-09-11 15:46:43 UTC) #8
hub
On 2018/09/11 15:46:43, hub wrote: > > > > - This doesn't seem to work ...
Sept. 13, 2018, 8:49 p.m. (2018-09-13 20:49:50 UTC) #9
Manish Jethani
On 2018/09/13 20:49:50, hub wrote: > On 2018/09/11 15:46:43, hub wrote: > > > > ...
Sept. 14, 2018, 4:50 a.m. (2018-09-14 04:50:49 UTC) #10
Sebastian Noack
https://codereview.adblockplus.org/29874649/diff/29880043/test/browser/_bootstrap.js File test/browser/_bootstrap.js (right): https://codereview.adblockplus.org/29874649/diff/29880043/test/browser/_bootstrap.js#newcode50 test/browser/_bootstrap.js:50: window.consoleLogs = {failures: 0, log: []}; This variable will ...
Sept. 17, 2018, 4:18 p.m. (2018-09-17 16:18:06 UTC) #11
hub
I haven't dealt yet with the `finally` on the Promise. https://codereview.adblockplus.org/29874649/diff/29880043/test/browser/_bootstrap.js File test/browser/_bootstrap.js (right): https://codereview.adblockplus.org/29874649/diff/29880043/test/browser/_bootstrap.js#newcode50 ...
Sept. 18, 2018, 10:23 p.m. (2018-09-18 22:23:37 UTC) #12
Sebastian Noack
https://codereview.adblockplus.org/29874649/diff/29880043/test/runners/webdriver.js File test/runners/webdriver.js (right): https://codereview.adblockplus.org/29874649/diff/29880043/test/runners/webdriver.js#newcode41 test/runners/webdriver.js:41: .finally(() => driver.quit()); On 2018/09/18 22:23:36, hub wrote: > ...
Sept. 19, 2018, 8:16 a.m. (2018-09-19 08:16:51 UTC) #13
hub
still some problems with the browser instance left behind.
Sept. 19, 2018, 7:15 p.m. (2018-09-19 19:15:25 UTC) #14
hub
https://codereview.adblockplus.org/29874649/diff/29884590/test/browser/_bootstrap.js File test/browser/_bootstrap.js (right): https://codereview.adblockplus.org/29874649/diff/29884590/test/browser/_bootstrap.js#newcode89 test/browser/_bootstrap.js:89: assertions.length + " assertions (" + assertions.duration + "ms)" ...
Sept. 20, 2018, 12:19 a.m. (2018-09-20 00:19:57 UTC) #15
Sebastian Noack
https://codereview.adblockplus.org/29874649/diff/29885592/test/runners/webdriver.js File test/runners/webdriver.js (right): https://codereview.adblockplus.org/29874649/diff/29885592/test/runners/webdriver.js#newcode44 test/runners/webdriver.js:44: driver.quit(); When I was still using nodeunit in adblockpluschrome, ...
Sept. 20, 2018, 5:34 p.m. (2018-09-20 17:34:00 UTC) #16
hub
Updated patch https://codereview.adblockplus.org/29874649/diff/29885592/test/runners/webdriver.js File test/runners/webdriver.js (right): https://codereview.adblockplus.org/29874649/diff/29885592/test/runners/webdriver.js#newcode44 test/runners/webdriver.js:44: driver.quit(); On 2018/09/20 17:34:00, Sebastian Noack wrote: ...
Sept. 20, 2018, 7:39 p.m. (2018-09-20 19:39:54 UTC) #17
Sebastian Noack
https://codereview.adblockplus.org/29874649/diff/29886703/test/runners/chromium_remote_process.js File test/runners/chromium_remote_process.js (right): https://codereview.adblockplus.org/29874649/diff/29886703/test/runners/chromium_remote_process.js#newcode189 test/runners/chromium_remote_process.js:189: return Promise.reject("Chromium (Remote Interface)"); Nit: You can just use ...
Sept. 21, 2018, 2:22 p.m. (2018-09-21 14:22:22 UTC) #18
hub
updated patch https://codereview.adblockplus.org/29874649/diff/29886703/test/runners/chromium_remote_process.js File test/runners/chromium_remote_process.js (right): https://codereview.adblockplus.org/29874649/diff/29886703/test/runners/chromium_remote_process.js#newcode189 test/runners/chromium_remote_process.js:189: return Promise.reject("Chromium (Remote Interface)"); On 2018/09/21 14:22:20, ...
Sept. 21, 2018, 3:39 p.m. (2018-09-21 15:39:36 UTC) #19
Sebastian Noack
LGTM. Note that the two comments I didn't reply to wouldn't be an issue with ...
Sept. 21, 2018, 3:58 p.m. (2018-09-21 15:58:46 UTC) #20
hub
Sept. 21, 2018, 4:14 p.m. (2018-09-21 16:14:11 UTC) #21
On 2018/09/21 15:58:46, Sebastian Noack wrote:
> LGTM.
> 
> Note that the two comments I didn't reply to wouldn't be an issue with Mocha,
> where test cases can just return a promise, and it takes care to report any
> promise rejection as an error causing the test fail. Also you can just close
the
> driver in an after() or afterEach() hook, which can return a promise as well,
> rather than the dance we do here to make sure the driver is destroyed.
> 
> Considering the above and the fact that nodeunit is deprecated, we should
really
> consider migrating this test suite to Mocha (like we already did in
> adblockpluscore).
> 

I already filed https://issues.adblockplus.org/ticket/6820 a while back.

Powered by Google App Engine
This is Rietveld