android - Excluding R.java from EMMA filter when in generated base package -


i have android project, running emma code coverage on jenkins build.

my problem setting filter excludes r.java without excluding other r* packages , classes.

this package layout:

com.akodiakson.base (this pkg , 2 files come gen folder, not actual part of code base) --r.java --buildconfig.java com.akodiakson.base.alpha com.akodiakson.base.beta com.akodiakson.base.champ --repeat.java (many other packages) com.akodiakson.base.roger (many other packages) 

this emma filter:

<property name="emma.filter" value ="        +*.akodiakson.base.*,         -*.akodiakson.base.*r*"/> 

this, however, inadvertently exclude com.akodiakson.base.roger , repeat.java

ideally, have explicitly exclude "com.akodiakson.base" without having explicitly include other r*.java classes , packages (see below non-ideal explicity-everything filter).

this not ideal (will not include roger):

<property name="emma.filter" value ="        +*.akodiakson.base.*,         -*.akodiakson.base.*r*",        +*.akodiakson.base.roger.*,        +*.akodiakson.base.repeat"/> 

i have tried many combinations without luck, including:

-*akodiakson.base.r$ -*akodiakson.base.r.java -~.*\.r\$.* 

i have seen of canonical posts here , @ "6.2. coverage filters"

this filter lives in build file of test project.

any words of wisdom?

have tried changing property this?

<property name="emma.filter" value ="        +*.akodiakson.base.*,         -*.akodiakson.base.r.java"/> 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -