What is it?
A free testing workshop that covers the basics of writing tests for Android and submitting them to an Open Source project such as ODK Collect. We’ll cover how to test Activities, Views, and other classes, as well as what can be done when writing new code to make testing easier.
What all will be covered?
What should we test?
How can we design our app to be more testable?
JUnit tests for non-Android classes.
Robolectric tests for Views, Fragments, and other discrete Android components.
Instrumentation tests for general app behavior.
How to submit a PR to add our new tests to the project.
When is it?
Wednesday, November 8th
UTC 16:00 - 18:00 (PST 8AM, EST 11AM, CET 17:00, IST 21:30)
FAQ Will it be recorded?
Yep! We’ll record it on YouTube Live for all of the people who aren’t able to make it.
How long will it last?
Around 2 hours, although the last 30-45 minutes will be Q&A.
Will we cover Dagger, Rx, etc.?
Nope! This session will mainly be focused on the basics, specifically looking at how to add tests to existing code bases such as ODK Collect (although the same stuff applies to new projects as well). We’ll mention some of these libraries as tools to help make apps easier to test, but they won’t be covered during the session.
I'm excited! I look forward to a decision on time so I can block it off on my calendar. @jknightco how are you thinking you'll decide that?
A great output would be a series of small, well-scoped Collect issues around testing that link to the video so it's easy for people new to Android testing to get started.
@Jason_Rogena we talked about this months ago and it's happening! Any topics you want to make sure are discussed?
This is going to be a great starting point to work with Android projects for me. I'm looking forward to this session
My two cents:
I'd love to understand how much of an app can be tested in isolation and what implementation strategies can we follow to maximize this. How far does it make sense to go?
I think it will be very helpful to keep everything close to the actual codebase of Collect or any other real Android project. Real projects bring real problems and provide great opportunities to discuss trade offs.
I also wanted to contribute on the topic of testing with this video of Ian Cooper that I find to be most inspiring: https://vimeo.com/68375232
Hi!
I'm very excited to participate in this workshop! I think a topic on how to build local unit tests using mocking frameworks would be nice.
Thanks for the mention @LN !
Here are the two timeslots I think work for a majority of people involved. Don't stress if you're not available during either of these slots—we'll be recording the entire session live so you can watch it when you're able.
UTC 16:00 - 18:00 (PST 9AM, EST 12PM, CET 17:00, IST 21:30)
UTC 18:00 - 20:00 (PST 11AM, EST 2PM, CET 19:00, IST 23:30)
These are definitely both topics we'll be covering. The first section of the workshop will talk specifically about how we can restructure existing projects to be more testable. We'll also be using existing Collect code for each example!
Thanks to everyone who was able to come! For those of you who missed it, Yaw posted the video above. Feel free to find me here, on the ODK Slack, or at james@saneandroid.com if you have any questions!