Commit Graph

28 Commits

Author SHA1 Message Date
Michael Klement 2f97421164 Hint added to read-me re standalone invocation of tests that use TEST_SHELL; revision of wording in read-me; argument checking no longer treats a missing dir. argument as an explicitly specified argument. 2014-10-18 10:34:30 -04:00
Michael Klement 1e9611e732 Support for cross-shell testing added, via option `-s <shell>` and env. variable `TEST_SHELL`.
* For **tests that _source_ shell scripts**: **option `-s <shell>`** now tells urchin to invoke test scripts with the specified shell (only shebang-less and `#!/bin/sh` tests scripts).
* For **tests that _invoke_ schell scripts**: instruct users to write their tests to always **invoke via environment variable `TEST_SHELL` (e.g., `$TEST_SHELL ../foo`)**, and invoke urchin with that variable defined as needed, e.g., `TEST_SHELL=ksh urchin ./tests`; urchin defaults `TEST_SHELL` to `/bin/sh`.

See updated `readme.md` for details.
2014-10-17 17:16:12 -04:00
Michael Klement deb77cb5de Various bug fixes and cleanup.
* bug fixes:
  * fixed directory-existence argument check
  * fixed how `.urchin_stdout` files are cleaned up
  * fixed instances of error/warning messages outputting to stdout instead of stderr
* documentation, help and error-message improvements:
  * added specific error message if the (non-option) argument is not a directory
  * improved wording of CLI help
  * readme.md: replaced obsolete URL http://www.urchin.sh with https://github.com/scraperwiki/urchin
  * readme.md: made the fact clearer that `./cross-shell-tests` only tests urchin's _own_ cross-shell compatibility
  * HISTORY: fixed typo
* formatting and logging improvements:
  * added timestamp to the beginning of log files (`.urchin.log`)
  * captured output from failed tests is now printed in *red* to draw attention
  * test summary now prints the number of failed tests in the appropriate color for instant feedback (green, if none failed; red, otherwise)
* cleanup
  * removed unused test files, simplified some tests
2014-10-16 16:37:51 -04:00
Thomas Levine fc711672d6 alternatives 2013-10-13 16:48:42 +00:00
David Jones 8913cbc195 Removing space at the end of a line. 2013-07-02 09:46:21 +01:00
David Jones 17b4629ba5 when testing, just cd into urchin 2013-07-02 09:43:59 +01:00
David Jones 85bfafffc8 /bin/sh not login shell 2013-07-02 09:43:16 +01:00
Thomas Levine da9a0c9948 documentation 2013-06-27 11:44:19 -07:00
David Jones d9902c0b11 ASCII art from figlet 2013-06-26 08:22:54 +01:00
David Jones 4d3a9eddb5 npm instructions. 2013-06-21 17:14:44 +01:00
David Jones 015052dcfd /bin/sh now 2013-06-19 09:20:13 +01:00
Thomas Levine bbcdc9783e run urchin's tests 2012-10-11 14:57:10 -04:00
Thomas Levine be4a5fc698 take an argument 2012-10-10 15:51:06 -04:00
Thomas Levine 1bd7b4adf6 changes 2012-10-10 15:47:21 -04:00
Thomas Levine 6062a8161f market 2012-10-10 12:53:03 -04:00
Zarino Zappia 35eb7c4605 Update readme.md 2012-10-09 17:23:30 +02:00
Thomas Levine bec338e52d typo 2012-10-08 10:35:58 -04:00
Thomas Levine 09472b9116 exporting 2012-10-08 10:33:45 -04:00
Thomas Levine f8d345c826 docs for simple thing 2012-10-08 10:24:32 -04:00
Thomas Levine 82f17b7172 docs 2012-10-08 10:16:49 -04:00
Thomas Levine 248e118f0b simplify 2012-10-08 10:13:43 -04:00
Thomas Levine e4c20076fc aoeu 2012-10-08 10:04:23 -04:00
Thomas Levine de5f723c37 install in /usr/local/bin 2012-10-08 10:03:50 -04:00
Thomas Levine d306d14963 more readme 2012-10-08 10:01:29 -04:00
Thomas Levine 1ace5a69f9 filesystem 2012-10-08 09:54:59 -04:00
Thomas Levine 096ef517e7 website submodule 2012-10-08 09:54:07 -04:00
Thomas Levine 8d78827ec6 remove h2 2012-10-04 07:23:31 -04:00
Thomas Levine e961d15d9c docs 2012-10-04 07:22:44 -04:00