In Java I can set and get a system property
System.setProperty("key","value");
String value = System.getProperty("key");
and the property I guess is set at the Java process level, but I need a property set at a higher level which is a bash process which runs some Java tests I developed, and I can't use a Java system property because the value won't persist across my test runs.
Is there a way to set a system property at the bash level that runs my tests that the children Java processes can access. Like for example I know that I can get the user name on a Linux machine using Java.
String userName = System.getProperty("user.name");
So I wonder if there is a higher level way of setting my own property at least at the Bash level that runs my Java tests.
edit
Basically I want a variable ranAtLeastOneTest
then set this variable to true
after the first test is run, then allow the other tests to access this variables to know if at least one test was run or not.