meta-tests
This commit is contained in:
parent
3368947b3b
commit
05c478baa9
1
tests/setup
Normal file
1
tests/setup
Normal file
@ -0,0 +1 @@
|
||||
#urchin_export tmp=$(mktemp -d)
|
0
tests/teardown
Normal file
0
tests/teardown
Normal file
0
tests/test_something/fixtures/thingy
Normal file
0
tests/test_something/fixtures/thingy
Normal file
0
tests/test_something/test_thing_exists
Normal file
0
tests/test_something/test_thing_exists
Normal file
7
urchin
7
urchin
@ -7,7 +7,9 @@ recurse() {
|
||||
(
|
||||
cd "$potential_test"
|
||||
[ -f setup ] && sh setup
|
||||
ls test* | xargs recurse
|
||||
for test in test*
|
||||
do recurse "${test}"
|
||||
done
|
||||
[ -f teardown ] && sh teardown
|
||||
)
|
||||
elif [ -f "$potential_test" ]
|
||||
@ -27,7 +29,10 @@ recurse() {
|
||||
|
||||
if [ -d tests ]
|
||||
then
|
||||
echo Running tests
|
||||
recurse tests
|
||||
echo
|
||||
echo Done
|
||||
else
|
||||
echo 'No tests directory' && exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user