users@jersey.java.net

[Jersey] Re: Are Jersey 2.0 tests multi-threaded?

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Wed, 29 May 2013 15:21:15 +0200

We have not done anything in that regard.

While the feature is certainly useful, it is not in the top of our priority list at the moment. As such, it is an ideal candidate for a contribution from Jersey community. As usual, we welcome all contributions. So feel free to contribute the support and submit a Github pull request.

Marek

On May 25, 2013, at 8:49 PM, cowwoc <cowwoc_at_bbs.darktech.org> wrote:

> Hi,
>
> The big problem with the Jersey 2.0 test framework is that you cannot execute multiple tests in parallel (due to the single-threaded nature of JerseyTest). Have this been fixed in Jersey 2.0?
>
> Are we able to execute multiple test classes in parallel? How about multiple test methods (belonging to the same test class) in parallel?
>
> I believe the infrastructure is there from the point of view of JUnit, TestNG and Grizzly. We can ask Grizzly to listen on an available port and retrieve that port number from the client code. The question is whether Jersey's test framework has been reworked to do this. I believe this will yield a huge performance increase because launching and shutting down test containers is very slow. If we could run multiple containers in parallel tests will run much faster.
>
> Thanks,
> Gili