How to exclude Integration Tests in pit plugin

728 views
Skip to first unread message

Kalyan Ram

unread,
May 26, 2015, 3:57:18 AM5/26/15
to pitu...@googlegroups.com
I have master -pom where I configured pit-test maven plugin, so I will inherit this master-pom in every app, so I need a common to exclude IT tests (like */IT.java). I tried some patterns, but I didn't get a right way to eliminate the IT tests when I run the mutation coverage.

Please help me with this.

henry

unread,
Jun 4, 2015, 10:39:27 AM6/4/15
to pitu...@googlegroups.com, kalyan...@gmail.com

On Tuesday, 26 May 2015 08:57:18 UTC+1, Kalyan Ram wrote:
I have master -pom where I configured pit-test maven plugin, so I will inherit this master-pom in every app, so I need a common to exclude IT tests (like */IT.java). I tried some patterns, but I didn't get a right way to eliminate the IT tests when I run the mutation coverage.


Sorry for the slow reply. Setting excludedClasses to com.yourrootpackage.*IT ought to do it for you (note that pitest filters against the name of the compiled class, not the name of the source file - hence you should not put .java on the end).

Henry
Reply all
Reply to author
Forward
0 new messages