I have implemented this feature & updated the doc. After excluding stubs,
the line code coverage in Carbon kernel core increased to 21% from 13%.
*4.0 filter.txt File (optional)
We may need to include or exclude certain package patterns during code
instrumentation. This can be controlled using the filter.txt file. The
default method of doing this is by placing the filters.txt file at
${basedir}/tests/src/resources/filters.txt.
This file also can be specified using the filters.file System property
undersystemPropertyVariables as
outlined in section 1.3.
Each inclusion/exclusion pattern is a *,?-wildcard class name mask,
prefixed with + and - for inclusion and exclusion, respectively. It is
legal to omit a prefix, in which case the inclusion prefix, +, is implied
For further details about emma inclusion & exclusion patterns, see
http://emma.sourceforge.net/reference/ch02s06s02.html#n11405
A sample filters.property file which excludes all generated stubs & all
files having “Temp” as part of the package or name is shown below:
-*.stub.*
-*Temp**
On Tue, Mar 27, 2012 at 6:39 PM, Afkham Azeez <[email protected]> wrote:
> Emma has the option of excluding certain packages. I can implement that
> feature if necessary.
>
>
> On Tue, Mar 27, 2012 at 6:29 PM, Subash Chaturanga <[email protected]>wrote:
>
>> Hi all,
>>
>> GReg successfully integrated Emma with integration tests.
>>
>> And here I have attached a screen shot of the coverage. As shown in first
>> part GReg covers around 60-70 code coverage in integration.
>> But as in the second image, we have pretty less coverage when it counts
>> on stubs and xsds and etc. May be those need to be excluded.
>>
>> Thanks
>> --
>>
>> Subash Chaturanga
>> Software Engineer
>> WSO2 Inc. http://wso2.com
>>
>> email - [email protected]
>> phone - 077 2225922
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
--
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **[email protected]* <[email protected]>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev