aboutsummaryrefslogtreecommitdiff
path: root/src/js/tests/README.md
blob: 1127a707026d0bd31dc8b4050a76a3138fcf86c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Running Tests
=============

The Javascript unit tests for FiveUI can be run in one of two ways, manually in
your browser, or in a headless context (better for automation/continuous
integration).

In Browser
----------

Start a local webserver at the FiveUI project root ($FIVEUI_ROOT) and load
`src/js/tests/SpecRunner.html`.

Headless
--------

Install [phantomjs](http://phantomjs.org/) on your system.

  - Debian/Ubuntu: apt-get install phantomjs
  - Fedora: yum install phantomjs
  - Mac OSX: brew install phantomjs

Run:

  $ phantomjs ../lib/phantomjs_jasmine/phantomjs_jasminexml_runner.js \
  PhantomJSJasmineRunner.html reports/

XML test reports will be generated in
`$FIVEUI_ROOT/src/js/tests/reports/`.