toolkit/devtools/gcli/source/docs/writing-tests.md

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/devtools/gcli/source/docs/writing-tests.md	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +
     1.5 +# Writing Tests
     1.6 +
     1.7 +There are several sources of GCLI tests and several environments in which they
     1.8 +are run.
     1.9 +
    1.10 +The majority of GCLI tests are stored in
    1.11 +[this repository](https://github.com/joewalker/gcli/) in files named like
    1.12 +```./lib/gclitest/test*.js```. These tests run in Firefox, Chrome, Opera,
    1.13 +PhantomJS, and NodeJS/JsDom
    1.14 +
    1.15 +See [Running Tests](running-tests.md) for further details.
    1.16 +
    1.17 +GCLI comes with a generic unit test harness (in ```./lib/test/```) and a
    1.18 +set of helpers for creating GCLI tests (in ```./lib/gclitest/helpers.js```).
    1.19 +
    1.20 +# GCLI tests in Firefox
    1.21 +
    1.22 +The build process converts the GCLI tests to run under Mochitest inside the
    1.23 +Firefox unit tests. It also adds some

mercurial