Can I run Junit test with Firebase Test Lab?

295 views
Skip to first unread message

steve...@pwc.com

unread,
Aug 11, 2016, 1:26:33 AM8/11/16
to Firebase Google Group
Hi All,
My team wants to use firebase to test app, but I just find robo test and instrumented test in the Firebase Test Lab console.Question is that can I run Junit test with Firebase Test Lab?

The information transmitted, including any attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited, and all liability arising therefrom is disclaimed. If you received this in error, please contact the sender and delete the material from any computer.

Doug Stevenson

unread,
Aug 11, 2016, 5:00:04 PM8/11/16
to Firebase Google Group
Instrumentation tests are typically implemented as a suite of JUnit tests.  If you just want to test your object logic and don't need full app instrumentation testing, you should be able to do that.  If you're able to run your tests on an emulator via the Android instrumentation test tooling, you should also be able to run those tests on Firebase Test Lab.

I'd suggest reading up on Android instrumentation testing here: https://developer.android.com/training/testing/unit-testing/instrumented-unit-tests.html

Also, it's worth noting that if you're just testing Java object logic, there's probably not much value in testing on multiple devices at API levels at the same time.  Just one virtual device should be fine.  However, when you start testing against actual Android implementation classes, it's helpful to target multiple devices and API levels.

Doug
Reply all
Reply to author
Forward
0 new messages