A few more notes to make it clear. 1. The default built.xml can be copied to the tests folder and change the name of the project in build.xml to your test project's name. 2. You also need the build.properties application.package=your_test_package_name ( This has to be different than your tested project for obvious reasons) tested.project.dir=.. tested.project.absolute.dir=.. The remaining two properties are the location of your actual project you are testing
All this is evident if you read the build.xml file and the template rules. (and I stand corrected on my previous post, the documentation is in the build.xml file and not in the template files ). Cheers, Chander On Feb 4, 11:13 am, Chander Pechetty <[email protected]> wrote: > Hi Matthias, > > <SDK_PATH>/platforms/android-2.0.1/templates/android_test_rules.xml > contains the rules for your test project just as android_rules.xml > contains the rules for a regular android project. > > When you create a project using "android create project" , the > build.xml generated uses the rules from these rule files by default. > Seehttp://developer.android.com/guide/developing/other-ide.html > > The documentation is present in the rule files. So run "ant coverage" > to run the tests and generate coverage reports. > Several examples of tests are present in android source , for example > tests for the Calculator app can be found > herehttp://android.git.kernel.org/?p=platform/packages/apps/Calculator.gi... > > Thanks > Chander > > On Feb 3, 3:12 pm, "[email protected]" > > <[email protected]> wrote: > > Hi, > > > we're using android for some software engineering courses at our > > university. The students should produce code coverage reports for > > their unit tests, so we looked at the android-2.0 SDK which says on > > the release page: > > > "Adds new Ant build system with support for Emma instrumentation > > projects (code coverage)." > > > However I'm unable to find any documentation or examples for this. > > Does someone have more information about it? > > > Greetings, > > Matthias Braun -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

