pitest / pitclipse

Mutation testing for Java in Eclipse IDE. Based on PIT (Pitest).
https://pitest.org
Apache License 2.0
59 stars 17 forks source link

Change PIT timeout without altering SWTBot timeout during tests #178

Closed echebbi closed 3 years ago

echebbi commented 3 years ago

Motivation

During tests we wait for PIT to end before checking the UI. If PIT runs for too long, we timeout and throw an error (shouldn't happen: just a protection against infinite loops). Currently, the timeout is based on SWTBot's timeout property. Because of that, changing the timeout for PIT also changes the timeout when searching for UI elements through SWTBot. We want to be able to change those two timeouts independently:

Discussion raised in https://github.com/pitest/pitclipse/pull/175#discussion_r688609291.

Proposed Solution

SWTBot's timeout is already configurable through the org.eclipse.swtbot.search.timeout property. I propose to create a new property, e.g., org.pitest.pitclipse.tests.pit.timeout, that holds the timeout for PIT.