Currently we have a gradle project which is responsible for running testng unit tests.
These are unit tests which verifies support provided for different versions of a framework.
Let me elaborate the problem with an example:
Let’s say I start supporting Akka version 2.3.X and as a good practice write a Unit Test which would need to include few akka jar’s as test-compile dependency.
Now after some time we plan to support Akka version 2.3.Y. And obviously we would need to write a Unit Test which would need to include few akka jar’s again but of different version.
And bang here we have the problem. Currently our Unit test runs on a single JVM and at one time we can have only one version of “artifact” be loaded. So we are left with choice of choosing one version of jar and may be try to mock the other one. But again for frameworks like Akka mocking may turn into nightmare.
One crude way is we could create a bunch of new projects. But that would be too verbose.
Is there a way in gradle where we would define multiple test tasks, each bound with a specific configuration?