asciibetical
This commit is contained in:
parent
7f5455739d
commit
d81b7efdc3
12
readme.md
12
readme.md
|
@ -27,14 +27,15 @@ run this:
|
||||||
cd urchin
|
cd urchin
|
||||||
./cross-shell-tests
|
./cross-shell-tests
|
||||||
|
|
||||||
## Globally
|
## Install
|
||||||
Download Urchin like so (as root) (or use npm, below):
|
Urchin is contained in a single file, so you can install it by copying it to a
|
||||||
|
directory in your `PATH`. For example, you can run the following as root.
|
||||||
|
|
||||||
cd /usr/local/bin
|
cd /usr/local/bin
|
||||||
wget https://raw.github.com/tlevine/urchin/master/urchin
|
wget https://raw.github.com/tlevine/urchin/master/urchin
|
||||||
chmod +x urchin
|
chmod +x urchin
|
||||||
|
|
||||||
Can be installed with npm too:
|
Urchin can be installed with npm too.
|
||||||
|
|
||||||
npm install -g urchin
|
npm install -g urchin
|
||||||
|
|
||||||
|
@ -86,15 +87,14 @@ Files are only run if they are executable, and files beginning with `.` are
|
||||||
ignored. Thus, fixtures and libraries can be included sloppily within the test
|
ignored. Thus, fixtures and libraries can be included sloppily within the test
|
||||||
directory tree. The test passes if the file exits 0; otherwise, it fails.
|
directory tree. The test passes if the file exits 0; otherwise, it fails.
|
||||||
|
|
||||||
In case you care about the order in which your tests execute, consider that
|
Tests files and subdirectories are run in ASCIIbetical order within each
|
||||||
|
directory; that is,
|
||||||
urchin looks for files within a directory in the following manner.
|
urchin looks for files within a directory in the following manner.
|
||||||
|
|
||||||
for file in *; do
|
for file in *; do
|
||||||
do_something_with_test_file $file
|
do_something_with_test_file $file
|
||||||
done
|
done
|
||||||
|
|
||||||
Tests within a directory are executed in whatever order `*` returns.
|
|
||||||
|
|
||||||
### Writing cross-shell compatibility tests for testing shell code
|
### Writing cross-shell compatibility tests for testing shell code
|
||||||
|
|
||||||
While you could write your test scripts to explicitly invoke the functionality
|
While you could write your test scripts to explicitly invoke the functionality
|
||||||
|
|
Loading…
Reference in New Issue
Block a user