Search code examples
androidantfiltercode-coverageemma

How can I use filter for emma when building Android test with ant?


I know how to use emma in ant when building my android test project but I can't find any tips on how to use filters when using the SDK. The emma website explains it when calling emma yourself but in the Android SDK build files emma is not called in the ant files or on the commandline so I'm not able to add the filter options.

Anyone any suggestions?


Solution

  • As of SDK Tools r18 you can simply add

    emma.filter=-com.your.excluded.package.*
    

    to the ant.properties of your project (not Test project)