mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
5b46130173
Point out there are no QUnit tests :-) Add .jshintignore file Change-Id: I02635b8620dda0110c04549724f50f561c5657fe Note: See also 69034
15 lines
678 B
Bash
Executable file
15 lines
678 B
Bash
Executable file
#!/usr/bin/env bash
|
|
echo "Running QUnit tests..."
|
|
if command -v phantomjs > /dev/null ; then
|
|
URL=${MEDIAWIKI_URL:-"http://127.0.0.1:80/w/index.php/"}
|
|
echo "Using $URL as a development environment host."
|
|
echo "Please ensure \$wgEnableJavaScriptTest = true; in your LocalSettings.php"
|
|
echo "To specify a different host set MEDIAWIKI_URL environment variable"
|
|
echo '(e.g. by running "export MEDIAWIKI_URL=http://127.0.0.1:80/w/index.php/")'
|
|
phantomjs tests/externals/phantomjs-qunit-runner.js "${URL}Special:JavaScriptTest/qunit?filter=ext.echo"
|
|
else
|
|
echo "You need to install PhantomJS to run QUnit tests in terminal!"
|
|
echo "See http://phantomjs.org/"
|
|
exit 1
|
|
fi
|