Closed reftel closed 6 years ago
The environment variables that are set immediately when instantiating the rule are not reset at the end of the test.
To be honest it is already possible to set variables that are not reset. E.g. by not adding the @Rule
annotation to the EnvironmentVariables
rule.
You are correct, the variables set when instantiating the rule don't get reset. I'll try fixing that.
Updated to use an actual builder, leaving set
as it was. Amended the testcase to show that variables now are reset after the execution of the rule.
This is now possible with System Rules 1.18.0: 063b1c82864c11b9dd3e14846665f796f340b7d5
If some of the environment variable values to set are known statically, then let the user set these immediately when instantiating the rule, reducing the need for setup methods.