mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Add Js tests runner
This commit is contained in:
15
tests/js/run.sh
Executable file
15
tests/js/run.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
BASEDIR=$(dirname $0)
|
||||
ROOTDIR="$BASEDIR/../.."
|
||||
|
||||
# run qunit tests
|
||||
phantomjs "$ROOTDIR/www/assets/qunit/addons/phantomjs/runner.js" "$ROOTDIR/www/include/js/tests/jquery.Upload.js.html"
|
||||
phantomjs "$ROOTDIR/www/assets/qunit/addons/phantomjs/runner.js" "$ROOTDIR/www/include/js/tests/jquery.Edit.js.html"
|
||||
phantomjs "$ROOTDIR/www/assets/qunit/addons/phantomjs/runner.js" "$ROOTDIR/www/include/js/tests/jquery.Selection.js.html"
|
||||
|
||||
# run backbone tests
|
||||
mocha-phantomjs "$ROOTDIR/www/scripts/tests/index.html"
|
||||
|
||||
# run angular tests
|
||||
sh "$BASEDIR/scripts/run.sh"
|
||||
|
Reference in New Issue
Block a user