Skip to content
janodvarko edited this page Oct 28, 2014 · 7 revisions

Learn how to write unit tests for Firebug code base.

Running Firebug Test Suite

The first thing you want to do before implementing a new test is setup the test environment and run the existing test suite to make sure all up and running.

  1. git clone https://github.com/firebug/firebug.next.git
  2. Make sure you have an updated copy of Firefox Nightly installed.
  3. Make sure you have npm & jpm installed. Read instructions.
  4. Install Firebug's dependencies by running npm install in the source directory (created in step 1).
  5. Run tests using jpm test-b nightly -v in the source directory.

Travis

Firebug repository is integrated with Travis. You can see the build status here.

Addon-httpd

Firebug uses addon-httpd module (see devDependency in package.json) as HTTP server for tests (see MDN).

Clone this wiki locally