android - Can I print an information message in JUnit tests? -
i running junit tests part of android app tests. in case it's testing responses of api rely on may changed (in order validate later tests)
when these tests pass output window of android studio shows no messages. we'd instead start each method message saying endpoint testing (e.g. "tests /oranges//segments") message shows first message both passing , failing tests.
i tried android logs log.println(log.assert, "...", "...")
did not show in android studio output.
is there way this? output window refer 1 displayed below
(when test marked ignored, can supply message display. i'd same behaviour other tests)
the old fashioned java
styled system.out.println();
work.
Comments
Post a Comment