gojuno/composer

Logs are empty for tests on API22

evgengal opened this issue · 12 comments

I run tests on api 22,23,24,25,26. And only on API22 there are problems:
The logs of each test in the report are empty. But full.logcat is OK.
screenshot from 2018-03-04 17-31-48

Also, if I take screenshots on API22, they also do not fall into the report. They remain in sdcard of the emulator.

Interesting, what instrumentation test runner/version do you use?

I use composer 0.3.2. but this problem was in earlier versions.

Sorry for confusion, I'm asking about test runner that you pass with --test-runner parameter :)

No difference. Try to run with parameter or without.

And what does composer reports in html report? Are tests running successfully?
Also, if you could attach logcat and instrumentation output it would help us to discover the problem.

In the report, everything is ok, but logs are empty. All tests have been passed.
Please, take a look at the report from two emulators (API 22 and 23)
composer.zip

Any news?

I'm having the same issue on API 19 emulators.

Screenshots are also not working. I checked the output folder on device and there's definitely screenshots there.

I did some investigation, and I noticed that logcat output is different on API 19. On my API 19 emulator here's what the test run log line starts with:

I/TestRunner( 478): finished:

Which is not what you are expecting:

screen shot 2018-04-05 at 12 06 47 am

@christopherperry hey, thanks for the clue, indeed logcat output format is different on those emulators, we'll need to modify parsing to make it work.

What about screenshots, are they not working on 19 API only? What is the path to the output folder they are located in?

Hi @yunikkk. I'm working on a fix for the parsing, maybe I'll submit a PR.

I haven't tried any other emulators besides API 25 which works fine. Output folder for the screenshots on the API 19 emulator is:

/data/data/com.example.app/app_spoon-screenshots