I know that jmockit won't work with Jumble, from personal experience
and new groups, but I had hoped PIT would work.
Unfortunately PIT does not currently work with JMockit. Of the mocking
frameworks it's been tested with (JMock, EasyMock, Mockito, PowerMock
and JMockit) it's the only one with known issues.
This will be looked at, but I don't think it is likely be fixed in the
next couple of releases.
If you're not too heavily invested in JMockit you could consider
converting the tests to Powermock which works nicely with PIT, and
provides pretty similar capabilities to JMockit. The only other
alternative at the moment is to exclude the JMockit tests using a
excludedClasses glob.
Henry
More investigation is required, but I'll see if this can be fixed for
the next release.
Henry
Feedback would be helpful from both JMockit and non-JMockit users of any
issues encountered with it or, just as importantly, trouble free runs.
Tests are in place as part of the build to confirm that JMockit works,
but its API is quite large and only a fraction of it is covered by the
tests. In theory if one part of the API works then all of it will, but
practice may be different.
In order to support JMockit I've ripped out a layer of overly complex
code that detected and split up JUnit tests, so things now work a little
differently behind the scenes compared to previous releases.
There's a change of behaviour in the snapshot that will be fixed before
the 0.24 release goes out - previously PIT treated tests with
BeforeClass or AfterClass annotations as atomic units. The snapshot does
not do this and will split out individual tests wrapped in the before
and after methods.
Henry
I've just uploaded a new snapshot to the sonatype repository that
restores the BeforeClass and AfterClass behaviour.
If you can confirm that this resolves your issues with JMockit this will
become a release candidate for 0.24.
Thanks
Henry
Glad to hear JMockit is working with PIT on a real codebase - assuming
no-one reports any issues with the snapshot I'll push out an official
0.24 release early next week.
Unless I've missed one I think we're now confirmed to work with all the
major mocking frameworks.
If you do track down the UISpec4J problem to an issue with PIT could you
raise a defect with a small project that demonstrates the issue?
Thanks
Henry
> Currently PIT is the only mutation testing tool I've found that works with this mock framework.
Out of interest, apart from PIT and Jumble have you tried any other
mutation testing tools?
I know that at least one person has been using PIT with cygwin without
issue with the 0.23 release. I can't imagine that any of the changes in
the 0.24 snapshot will have impacted cygwin, but you could try with 0.23
just in case?
Can you let me know how you get on. I don't have easy access to a
windows box to try and reproduce this.
Cheers
Henry
Can you raise a defect and attach the example? I'll take a look at this
as soon as I get chance.
Thanks
Henry