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

Print custom data to JUnit success result

    @Test
    public void test()
    {
        out("Current device = SM-G920F");
    }

    private void out(String str) {
        Bundle b = new Bundle();
        b.putString(Instrumentation.REPORT_KEY_STREAMRESULT, "\n" + str);
        InstrumentationRegistry.getInstrumentation().sendStatus(0, b);
    }



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

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

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...