Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Logs are empty for tests on API22 #129

Open
evgengal opened this issue Mar 4, 2018 · 12 comments
Open

Logs are empty for tests on API22 #129

evgengal opened this issue Mar 4, 2018 · 12 comments

Comments

@evgengal
Copy link

evgengal commented Mar 4, 2018

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

@evgengal
Copy link
Author

evgengal commented Mar 4, 2018

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

@artem-zinnatullin
Copy link
Collaborator

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

@evgengal
Copy link
Author

evgengal commented Mar 5, 2018

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

@artem-zinnatullin
Copy link
Collaborator

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

@evgengal
Copy link
Author

evgengal commented Mar 5, 2018

No difference. Try to run with parameter or without.

@yunikkk
Copy link
Contributor

yunikkk commented Mar 6, 2018

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.

@evgengal
Copy link
Author

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

@evgengal
Copy link
Author

Any news?

@christopherperry
Copy link
Contributor

christopherperry commented Apr 5, 2018

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.

@christopherperry
Copy link
Contributor

christopherperry commented Apr 5, 2018

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

@yunikkk
Copy link
Contributor

yunikkk commented Apr 5, 2018

@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?

@christopherperry
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants