Opened on 06/01/2018 at 02:11:18 PM

Closed on 08/24/2018 at 07:27:06 PM

Last modified on 10/03/2018 at 11:09:03 AM

#6717 closed change (fixed)

Run tests in adblockpluschrome using npm

Reported by: hfiguiere Assignee: tlucas
Priority: P2 Milestone: Adblock-Plus-3.4-for-Chrome-Opera-Firefox
Module: Platform Keywords:
Cc: kzar, sebastian Blocked By: #6881
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Ross Verified working: yes
Review URL(s):

Description (last modified by tlucas)


Currently running the qunit tests in adblockpluschrome involve:

  1. building a devenv build
  2. loading it into the browser (reload is automatic and Chrome remembers if it was load in the previous session)
  3. opening the option page (in Chrome it gets closed when the addon is reloaded)
  4. opening the dev tools
  5. entering location.href = "qunit/index.html"; in the javascript console.

Ideally we should just be able to do npm test to run the tests.

What to change

  • add a package.json
  • add a test target in the package.json that will perform the devenv build and run the tests
    • This involves adding WebDriver support like in issue #6391, use adblockpluscores implementation for downloading Firefox when necessary. Hence #6881 needs to land before this change.

Note for tester

  • Nothing to do, it doesn't impact the release.

Attachments (0)

Change History (15)

comment:1 Changed on 06/01/2018 at 02:20:11 PM by kzar

  • Component changed from Adblock-Plus-for-Chromium to Platform

comment:2 Changed on 06/15/2018 at 08:18:50 PM by hfiguiere

  • Owner set to hfiguiere
  • Review URL(s) modified (diff)

comment:3 Changed on 06/15/2018 at 08:19:01 PM by hfiguiere

  • Status changed from new to reviewing

comment:4 Changed on 07/24/2018 at 03:30:44 PM by kzar

  • Priority changed from Unknown to P2
  • Ready set

comment:5 Changed on 08/14/2018 at 08:26:27 PM by abpbot

A commit referencing this issue has landed:
Issue 6717 - Part 1: run eslint through npm

comment:6 Changed on 08/21/2018 at 10:50:11 AM by tlucas

  • Owner changed from hfiguiere to tlucas

comment:7 Changed on 08/21/2018 at 12:03:10 PM by tlucas

  • Review URL(s) modified (diff)

comment:8 Changed on 08/24/2018 at 06:49:58 PM by tlucas

  • Description modified (diff)

comment:9 Changed on 08/24/2018 at 07:02:51 PM by tlucas

  • Blocked By 6881 added

comment:10 Changed on 08/24/2018 at 07:03:34 PM by tlucas

  • Blocked By 6881 removed
  • Description modified (diff)

comment:11 Changed on 08/24/2018 at 07:04:22 PM by tlucas

  • Blocked By 6881 added

comment:12 Changed on 08/24/2018 at 07:25:57 PM by abpbot

A commit referencing this issue has landed:
Issue 6717 - Part 2: run qunit in headless firefox

comment:13 Changed on 08/24/2018 at 07:27:06 PM by tlucas

  • Resolution set to fixed
  • Status changed from reviewing to closed

comment:14 Changed on 08/27/2018 at 10:06:58 AM by sebastian

  • Milestone set to Adblock-Plus-for-Chrome-Opera-Firefox-next

comment:15 Changed on 10/03/2018 at 11:09:03 AM by Ross

  • Tester changed from Unknown to Ross
  • Verified working set

Done/Implemented. Working as expected on Linux and Windows. Can run both automated tests and qunit tests using npm test.

adblockpluschrome / master / 2164:856217ee8673

Add Comment

Modify Ticket

Change Properties
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from tlucas.
Note: See TracTickets for help on using tickets.