Can we use pitest for mutation testing with remote server?

42 views
Skip to first unread message

pro

unread,
Oct 7, 2021, 10:37:43 PM10/7/21
to PIT Users
Quality Assurance(QA) use maven and testng to call the remote service interface and add assertions to ensure that the interface returns meet expectations.

The core lies in the test case calling the interface of the remote service for testing, using pitest when running the case, whether it can be mutated for the remote service?

Henry Coles

unread,
Oct 8, 2021, 2:31:09 AM10/8/21
to pitu...@googlegroups.com
It is not possible to mutate a remote service. The tests and code under test must run in the same jvm.

Henry

On Fri, 8 Oct 2021, 03:37 'pro' via PIT Users, <pitu...@googlegroups.com> wrote:
Quality Assurance(QA) use maven and testng to call the remote service interface and add assertions to ensure that the interface returns meet expectations.

The core lies in the test case calling the interface of the remote service for testing, using pitest when running the case, whether it can be mutated for the remote service?

--
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/efbd81a4-3e67-437c-92c7-a65ffc48654dn%40googlegroups.com.

pro

unread,
Oct 8, 2021, 5:27:59 AM10/8/21
to PIT Users
hi  henry,
     Can I ask for advice the reason why the tests and code under test must run in the same jvm ? 
     Thank you for your reply.
 pro.

Henry Coles

unread,
Oct 8, 2021, 5:54:58 AM10/8/21
to pitu...@googlegroups.com
This is fundamental to how pitest works - bytecode is manipulated in memory to create mutations. If the code is running in a separate jvm it will not be mutated.


Reply all
Reply to author
Forward
0 new messages