mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02:30
Run tests with testem in broccoli watcher
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -49,6 +49,8 @@ npm-debug.log
|
|||||||
coverage.xml
|
coverage.xml
|
||||||
htmlcov
|
htmlcov
|
||||||
pep8.txt
|
pep8.txt
|
||||||
|
scratch
|
||||||
|
testem.log
|
||||||
|
|
||||||
# Mac OS X
|
# Mac OS X
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
|||||||
25
testem.yml
Normal file
25
testem.yml
Normal 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
|
||||||
Reference in New Issue
Block a user