1
1
mirror of https://github.com/ariya/phantomjs.git synced 2024-09-19 16:48:07 +03:00
phantomjs/test/run-tests.sh
Zack Weinberg b524d53d36 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-08-19 20:24:28 -07:00

3 lines
70 B
Bash
Executable File

#!/bin/sh
exec "${0%/*}/../bin/phantomjs" "${0%/*}/run-tests.js" "$@"