fixtures idea

This commit is contained in:
Thomas Levine 2016-04-07 12:20:31 +00:00
parent 0395ebb5b2
commit 74e9d95f77
1 changed files with 26 additions and 0 deletions

26
TODO
View File

@ -72,6 +72,29 @@ Setup for other environments includes the following.
* `touch .zshrc`
* Copy urchin and tests
Fixtures
------------
I want to change the way that fixtures are done.
Instead of using setup, teardown, &c., use ordinary programs from within
your tests. For example.
# tests/.fixtures/tmp-dir
tmp=$(mktemp -d)
cd $tmp
@$
code=$?
cd /
rm -Rf $tmp
exit $code
# tests/blah
../.fixtures/tmp-dir 'blah blah blah'
It's best if I can wrap a bunch of commands in braces or paratheses
rather than just one command. Is there a nice way to do that?
Bugs
-------
@ -167,3 +190,6 @@ NetBSD
usage: cksum [-n] [-a algorithm [-ptx] [-s string]] [-o 1|2]
[file ... | -c [-w] [sumfile]]