1. Brodie Rao
  2. cram
  3. Issues
Issue #22 new

Feature request: setup scripting

Steve Losh
created an issue

It'd be nice if each test file didn't have to do its own setup. Stuff like setting up a basic directory structure for tools that work on files and such.

Maybe we can hack around it with something like a first line of:

$ $TESTDIR/setup.sh

Is there a better way?

Comments (2)

  1. Anonymous

    having used cram in a bunch of small projects like git-mantle i'd say no magic is needed, and running (or sourcing) a $TESTDIR/setup.sh or similar file is perfectly adequate and the explicit nature of it makes the tests easier to understand.

  2. Log in to comment