How to tell Emma which test classes to use in a maven project

672 Views Asked by At


I have two sort of tests in my project. One of them is ending "Test", the other is ending with "IT".
How can i tell emma that it should take all test classes in account?

Kayser

1

There are 1 best solutions below

1
On

I haven't tried this myself, but the maven emma plugin properties link has a reference to the following property:

maven.emma.filter.includes Specifies a list of patterns, separated with white space and/or commas. Example: com.foo.*.

You could try specifiying the property with value like **Test **IT - either through maven command line (-Dmaven.emma.filter.includes="**Test **IT") or through plugin configuration (though I don't see documentation on the latter).