1c32db68da
Implements the beginnings of unit testing infrastructure using mocha/chai. The unit tests can be run locally using test/runtests.sh, although this will need tweaks to run on Windows. They should also run on commit using Travis-CI. The unit tests themselves live in test/tests. The index.js file specifies separate test sets, which can be run individually by calling test/runtests.sh <testsets>. Right now there is only a single unit test, but hopefully we'll have more soon...
16 lines
457 B
YAML
16 lines
457 B
YAML
language: cpp
|
|
compiler:
|
|
- gcc
|
|
env:
|
|
matrix:
|
|
- FIREFOXVERSION="36.0.1"
|
|
- FIREFOXVERSION="31.5.0esr"
|
|
notifications:
|
|
email: false
|
|
before_install:
|
|
- export DISPLAY=:99.0
|
|
- sh -e /etc/init.d/xvfb start
|
|
- wget http://ftp.mozilla.org/pub/firefox/releases/${FIREFOXVERSION}/linux-x86_64/en-US/firefox-${FIREFOXVERSION}.tar.bz2
|
|
- tar -xjf firefox-${FIREFOXVERSION}.tar.bz2
|
|
script:
|
|
- test/runtests.sh -x firefox/firefox
|