AzimoLabs / fastlane-plugin-automated-test-emulator-run

Plugin dedicated for Android platform. Wraps gradle task/shell command used for launching instrumented tests. Provides start of as many AVDs with various configs as needed before test run, waits for boot, kills emulators and deletes them from hdd after tests are finished or disturbed.
MIT License
112 stars 48 forks source link

Add support for getting log from logcat #15

Closed jetersen closed 7 years ago

jetersen commented 7 years ago

We needed to get the logs from logcat in our Jenkins setup. :rocket:

adb is very particular about who owns the process and since the plugin was our tool to get adb running, we needed to add the functionality to the plugin 👍

jetersen commented 7 years ago

@FisherKK any suggestions?

FisherKK commented 7 years ago

Hello @casz sorry for late response.

I will take a closer look into it soon.

FisherKK commented 7 years ago

Actually I like very much what you have done here.

I am currently working on bigger tool for testing and managing devices/test profiles. I struggle to find time to do readme/some tutorial but you can check this if you are interested:

https://github.com/AzimoLabs/AzimoNote

Your solution gave me hint how to differently handle logcat logging. I was creating separate thread that was running along with test thread for each device. I was reading incoming logcat messages line by line and had problems with encoding. If I could write it to txt and then split by lines to make .json from it then it would be amazing.

Thanks for contributing.

jetersen commented 7 years ago

A version bump and release would be great https://github.com/AzimoLabs/fastlane-plugin-automated-test-emulator-run/blob/62e12a122ea8cb2196e509395187df17457aa21d/lib/fastlane/plugin/automated_test_emulator_run/version.rb#L3

FisherKK commented 7 years ago

1.6.0 should be available now :)