Fastlane Android — run test tutorial/my notes

Andrés Sandoval
Aug 27, 2017 · 1 min read

Fastlane. The purpose of this tutorial it’s to show android developers how to automate deployment. Sounds hard but the only hard part was starting to read this doc :)

  1. First install Fastlane on Mac

2. Go to you app directory $cd /dev/Kotlin/MapApp

3. Configure Fastlane in you app dir $fatlane init (command will configure fastlane in the current android project ex. it downloads the metadata from the play store..)

4. Run fastlane ~/dev/Kotlin/MapApp$ fastlane android

5. Enter 1, to run test (unit tests) of app.

6. When the test are done it will generated test report.

ex project location $open /Users/andres/dev/Kotlin/MapApp/app/build/reports/tests/testReleaseUnitTest/index.html


Summary: Fastlane runs gradle commands for you.

$fastlane android test == $gradlew test


)

Andrés Sandoval

Written by

Sr. Software Engineer, writer, swimmer, traveler. my personal apps: https://goo.gl/rDuuQw https://goo.gl/15GvfE

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade