среда, 13 июня 2018 г.

Add KV data to JUnit test (console run)

adb shell am instrument -w -e class com.example.developer.appname.SomeTests#testName -e key1 param1 -e key2 param2 com.example.developer.appname.test/android.support.test.runner.AndroidJUnitRunner

Spaces and some other characters is not supported in key or value
in android test use InstrumentationRegistry.getArguments().get(key)

Комментариев нет:

Отправить комментарий

Git hooks

Original info: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks My goal: Validate commit message and deny commit if a comment di...