This website requires JavaScript.
Explore
Help
Sign In
vitalif
/
phantomjs
mirror of
https://github.com/vitalif/phantomjs
Watch
1
Star
0
Fork
You've already forked phantomjs
0
Code
Issues
Releases
Wiki
Activity
master
phantomjs
/
test
/
run-tests.sh
3 lines
70 B
Bash
Raw
Permalink
Normal View
History
Unescape
Escape
Add ability to run tests selectively. * Anything on the command line after "run-tests.sh" will be understood as a regular expression (if there is more than one argument, they are concatenated, with spaces in between) and only the tests whose "full names" match that regexp will be run. The full name of a test is the "describe" string plus a space plus the "it" string. Note well that, unlike the test-runner output, there is no colon in there. * run-tests.sh and run-tests.js now correctly handle being invoked from an arbitrary directory; the cwd does not have to be the project root. * Shell portability fixes for run-tests.sh. #12230 (Test suite improvements).
2014-05-15 00:48:56 +04:00
#!/bin/sh
exec
"
${
0
%/*
}
/../bin/phantomjs
"
"
${
0
%/*
}
/run-tests.js
"
"
$@
"