Fork me on GitHub

node-jasmine-dom

1. set yourself up

  1. install node and npm.
  2. sudo npm install -g jasmine-dom
  3. write some jasmine specs (or take a look at some examples)

2. run your tests

$ jasmine-dom --runner /path/to/your/SpecRunner.html --format nice

Failed: 
    - In /path/to/your/SpecRunner.html >> Example functions 
      >> Should fail!! :: Expected 3 to equal 8.

3. serve your tests

$ jasmine-dom --runner path/to/your/SpecRunner.html --server 8081
PASS FAIL

4. run multiple runners with a config

Config.yml:
---
  test_one:
    name: Example test one
    runner: ./runner.html
  test_two:
    name: Example test two
    runner: ./runner2.html

$ jasmine-dom --config path/to/config.yml --format nice

Failed: 
 - In Example test two >> Example functions (some more) 
   >> Should fail!! :: Expected false to be truthy.
 - In Example test one >> Example functions 
   >> Should fail!! :: Expected 3 to equal 8.

5. run in jenkins

Jenkins 1

Jenkins 2


Build...


Jenkins 3