I'm writing a java library foo
which has a dependency on bar:1.1+
.
But library bar
has changed quite a bit over the time, and I'd like to ensure my library is compatible with every version of bar
(1.1
... 1.10
).
So I'd like (during CI) to run each of my unit tests with a classpath including bar:1.X
, with every version available of bar
.
I'm using gradle and junit/spock but I'm open to solutions with variations.
Right I can duplicate by gradle test tasks, but that's pretty cumbersome, and the tests results may be difficult to aggregate. Ideally I'd define right next to my test which versions of bar it should run with, e.g.:
@RunWith("com.acme:bar:1.1..1.10")
public class MyTest { ... }
But I find no tool/runner for that.