Skip to content

Latest commit

 

History

History
 
 

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

JS Unit Tests

Tests are written using Mocha in a BDD style. We use the Chai Assertion library for verifying behaviour.

Running Tests

From command line

Simple run:

$> cd <repos>/waltz/walt-ng
$> npm run test  

From IntelliJ

Ensure Node support is installed. Configure a test Mocha test runner with options similar to the following:

  • mocha package: <repos>/waltz/waltz-ng/node_modules/mocha
  • mocha options: --recursive --compilers js:babel-core/register
  • test directory: <repos>/waltz/waltz-ng/tests
  • working directory: <repos>/waltz
  • interface style: bdd