It would be nice to have a predefined environment variable SHUNIT_TEST with the name of the test currently running. This would help create temporary directories inside, which are uniquely named, avoiding duplication.
Now, I have to do this:
testPublishesData() {
tmp=target/shunit2/publishes-data
mkdir -p "${tmp}"
...
I want to do this instead:
testPublishesData() {
tmp=target/shunit2/${SHUNIT_TEST}
mkdir -p "${tmp}"
...
It would be nice to have a predefined environment variable
SHUNIT_TESTwith the name of the test currently running. This would help create temporary directories inside, which are uniquely named, avoiding duplication.Now, I have to do this:
I want to do this instead: