Thursday, August 18, 2011

LinuxCon 2011 North America: Introduction to Android Testing

It was terrific having such a great audience showing a big interest in the topic of my tutorial, asking questions and starting discussions that made the presentation more enjoyable. I really want to thank you all.

For those who missed it, here are the slides that should be available at the Linux Foundation web site any time soon too.

5 comments:

Adolfo said...
This comment has been removed by the author.
Adolfo said...

Thanks a lot for posting the slides Diego. I have a couple of questions regarding the code coverage section of your presentation.

* Is it still required to build Android from source code in order to enable EMMA, as you mention in your book?

* Did you use EclEmma to integrate the code coverage to Eclipse?

I did not attend LinuxCon, so the questions come from what I read in your post.

By the way, I've found your book very useful. The only thing I have had to figure out so far is how to put things together with Maven.

Diego Torres Milano said...

Hi Adolfo,
Thanks for your comments about the book. I'm glad to hear you found it useful.

1. No, it's not needed in many cases. See page 284: The undocumented Ant coverage target.

2. Good point, it's EclEmma, I should have include it in a slide, though the screenshots belong to EclEmma as you may have noticed.



If you search this blog for "maven" you'll find some posts.

Canvas said...

I met a problem, could you give some advice?
Target "coverage" does not exist in the project "TemperatureConverterActivityTes
t".

Diego Torres Milano said...

In the latest release of Android SDK and tools things changed a little.
Use 'ant help' to see the options for your specific version but it would probably be:


[echo] test: Runs the tests. Project must be a test project and
[echo] must have been built. Typical usage would be:
[echo] ant [emma] debug installt test



So

$ ant emma debug installt test

would do the trick.