Pit Configuration Excluded Classes Not Working

1,258 views
Skip to first unread message

soma srikanth

unread,
Aug 23, 2016, 5:07:41 PM8/23/16
to PIT Users
Pit is picking up the Integration Tests that i want to ignore i'm using pit version 1.1.10 when i delete those integration tests physically pit runs successfully and able to generate reports what is the work around when pit configuration excluded classes don't work i tried excludedgroups too still pit is picking up integration tests. 

Henry Coles

unread,
Aug 24, 2016, 2:47:25 AM8/24/16
to pitu...@googlegroups.com
On 23 August 2016 at 22:07, soma srikanth <soma.sr...@gmail.com> wrote:
Pit is picking up the Integration Tests that i want to ignore i'm using pit version 1.1.10 when i delete those integration tests physically pit runs successfully and able to generate reports what is the work around when pit configuration excluded classes don't work i tried excludedgroups too still pit is picking up integration tests. 


Can you post the configuation you used to try to exclude the tests?

There are two possibilities here

a. There is an error in the config
b. You have a suite on the classpath that is causing the excluded tests to leak back in

Henry

soma srikanth

unread,
Aug 24, 2016, 6:14:29 PM8/24/16
to pitu...@googlegroups.com
Hi Henry,

Thanks for the reply below is my configuration

<plugin>
                <groupId>org.pitest</groupId>
                <artifactId>pitest-maven</artifactId>
                <version>1.1.3</version>
                <configuration>
                    <timestampedReports>false</timestampedReports>
                    <failWhenNoMutations>false</failWhenNoMutations>
                    <outputFormats>
                        <param>XML</param>
                        <param>HTML</param>
                        <param>CSV</param>
                    </outputFormats>
                    <targetClasses>
                        <param>java.class.*</param>
                    </targetClasses>
                    <targetTests>
                        <param>java.tests.*</param>
                    </targetTests>
                    <excludedClasses>
                        <excludedClass>company.integratedtests.*</excludedClass>
                    </excludedClasses>
                </configuration>
            </plugin>


--
You received this message because you are subscribed to a topic in the Google Groups "PIT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pitusers/SxKSYvJgjEU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pitusers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages