Run tests with testem in broccoli watcher

This commit is contained in:
Joe Fiorini 2015-07-08 10:31:32 -04:00
parent f1fe118c10
commit 572b80c7af
2 changed files with 27 additions and 0 deletions

2
.gitignore vendored
View File

@ -49,6 +49,8 @@ npm-debug.log
coverage.xml
htmlcov
pep8.txt
scratch
testem.log
# Mac OS X
*.DS_Store

25
testem.yml Normal file
View File

@ -0,0 +1,25 @@
---
# before_tests: cd ../../.. && sudo make devjs
framework: mocha
cwd: awx/ui/dist/node-tests
src_files:
- tests/**.js
- static/js/**/*.js
- static/lib/**/*.js
disable_watching: true
serve_files:
- ../tower.concat.js
- tests/templates.js
- tests/test-support.js
- tests/unit/**/*.js
- tests/unit.js
unsafe_file_serving: true
routes:
/awx/ui/dist: /static
launch_in_dev:
- Mocha
launch_in_ci:
- PhantomJS
launchers:
Mocha:
command: NODE_PATH=awx/ui/dist/node-tests ./node_modules/.bin/mocha awx/ui/dist/node-tests/tests/unit/**/*.js