Skip to content

SHUNIT_TEST would be nice to have #186

@yegor256

Description

@yegor256

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}"
  ...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions