Skip to content
Alexander Pape edited this page Dec 14, 2016 · 6 revisions

Segments accepted in testem.yml

framework

test framework to load into context and absorb output from

  • jasmine : default. loads jasmine and jasmine-html, (which comes with expect)
  • mocha - loads mocha for browser.
  • mochachai - loads mocha for browser, and chai with it
  • qunit - loads qunit for browser.
  • buster - loads mocha for browser.
  • jasmine2 - loads jasmine2, jasmine2-html and jasmine2-boot.
  • custom - does not load any framework for you, except testem. everything you use on top of it should be part of src_files.

To explore more - you can check the templates in the ./views directory, and see exactly what each of them loads

src_files:

source files to load into context. it should specify ALL sources, including System-Under-Test, and Test-Harness.

example:

src_files:
  - node_modules/should/should.js
  - ./lib/**.js
  - ./test/*.js

before_tests

a single shell command to run before tests start

after_tests

a single shell command to run after all tests have run

launch_in_dev

launch_in_dev:
 - Chrome
 - Opera
 - Safari

launch_in_ci

launch_in_ci:
 - All

for more detail - look in the md doc here and in the examples directory here