how to add custom mutator class to org.pitest.mutationtest.engine.gregor.config.Mutator

77 views
Skip to first unread message

Jack van Heugten Breurkes

unread,
Jul 26, 2020, 6:04:34 AM7/26/20
to PIT Users
I have created a custom mutator class, but I am not sure how to add this class to org.pitest.mutationtest.engine.gregor.config.Mutator so that I can use it.

Would I need to clone the pitest repository and modify that version of the class, then set up pitest to use my local custom version of gregor using the `mutationEngine` property?

I am using gradle for configuring pitest.

I am happy to clarify aspects of the problem, I am quite new to using pitest so am unsure of what information would be helpful.

Henry Coles

unread,
Jul 27, 2020, 4:20:46 AM7/27/20
to pitu...@googlegroups.com
Unfortunately there isn't currently a way to inject a new mutator so, yes, you will have to clone and modify. It is possible to plug in an entirely different mutation engine, so that might be an option depending on what you are trying to do.

For an example of howto implement a different engine take a look at https://github.com/STAMP-project/pitest-descartes

Henry

--
You received this message because you are subscribed to the Google Groups "PIT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pitusers+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pitusers/d517058f-4b2f-4c0f-a80e-b78589595449o%40googlegroups.com.

alex cochrane

unread,
Oct 19, 2020, 10:41:51 PM10/19/20
to PIT Users
I was looking through this group looking for how to do this exact thing. Have you had any success looking at descartes as an example? Did you finally get your mutation engine working, if so what steps did you take to get there?

Thank you,

Alex

Reply all
Reply to author
Forward
0 new messages