When are system properties registered and are JUnit properties supported? #328
-
I'm trying to understand how this plugin registers system properties, and whether or not we should expect them to work all scenarios or only some. My understanding based on what I have found is that we can set system properties with the "systemProperties" runner argument: and that they are then registered by the However, after see the documentation and the implemtation, I have a few questions:
To be clear, this question is not based on any observed behavior. I haven't checked for myself anything related to system properties yet, because I'm not sure what I should expect. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
As you point out, you can provide Java system properties to the Android instrumentation via a runner argument. The most common applications for this would be to either add them to your build script file (i.e. in
|
Beta Was this translation helpful? Give feedback.
As you point out, you can provide Java system properties to the Android instrumentation via a runner argument. The most common applications for this would be to either add them to your build script file (i.e. in
build.gradle.kts
), or to apply them along with the command that starts the instrumentation tests (i.e. viaadb shell am instrument...
or./gradlew connectedAndroidTest
).AndroidJUnit5
runner before execution of a test class with JUnit 5 tests starts. Think of it this way: The Android instrumentation throws a class at this runner, and the runner determines if there are any relevant tests inside of it. If yes, then they are executed, and …