💾 Archived View for g.mikf.pl › gemlog › 2022-09-05-setenv.gmi captured on 2024-06-16 at 12:18:04. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
Scavenging the codebases for ways to do it, two main libraries exploiting reflection were found for this:
https://junit-pioneer.org/docs/environment-variables
org.junit-pioneer junit-pioneer
import org.junitpioneer.jupiter.SetEnvironmentVariable
These are per-test-method annotations for JUnit5.
https://github.com/webcompere/system-stubs
uk.org.webcompere system-stubs-core | system-stubs-junit4 | system-stubs-jupiter
https://github.com/webcompere/system-stubs/blob/main/system-stubs-junit4/README.md
https://github.com/webcompere/system-stubs/blob/main/system-stubs-jupiter/README.md
System Stubs JUnit4 Test Rules Plugin was made equivalent to previously existing System Rules project.