I'm in the process of writing unit test for my project and I'm using TestNG and JMockit for creating test doubles. JMockit looked like a great option at the beginning for its advanced capabilities like mocking static and private methods, but right now, I'm getting some weird issues like ConcurrentModificationException and some other JMockit exceptions.
After doing some research, it looks like JMockit doesn't support concurrent test execution: http://ift.tt/1QyJzXz http://ift.tt/1ULhprc
Just for the sake of it, I reimplemented my tests using Mockito and this time they work perfectly fine in parallel, so my question is: - Have you run into these issues before? How did you solve it? - Did you stop using JMockit because of this or is there any way of solving it? - What do you consider most important? Parallel test execution or advanced mocking capabilities?
Thanks everyone
Aucun commentaire:
Enregistrer un commentaire