Introduce JUnit Jupiter variant of Guava's collection test suite builders
See original GitHub issueHi all at junit-pioneer!
Three years ago, I opened an issue where I offered to contribute an extension for testing Java collections similar to Guava’s collection suite builders (CSBs), which @nipafx expressed an interest in. In the end I took my offer back because I developed some work independently, which I wanted to keep independent because of the amount of work I put into it and so that I could experiment with some static analysis tools.
However, I was relatively inexperienced, and I tried to build a CSB for List
first, which turned out to be a poor idea because it was one of the larger interfaces in the collections framework. Furthermore I had just started a full-time role at Argos, a UK retailer, so my free time was reduced and I abandoned the project.
I’m now at a point where I want to try writing some CSBs again, so I wanted to ask if you’d be interested in hosting this work again.
What do you think? @nipafx, would you still be interested in this?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top GitHub Comments
@Michael1993 Thanks for labelling this issue (even though it’s still “in discussion”) and for assigning me!
Thanks for your thoughts on this, @nipafx. 😁
Good point about (2) not supporting JUnit 4 extensions, I hasn’t considered that. So I agree, let’s consider other options first.
Two ideas for approaching (1) come to mind. What do you think, team?
DynamicTest
s for@TestFactory
methods.ServiceLoader
or Spring.ServiceLoader
, how common is that for loading collections? Furthermore, how many frameworks create collections at build time or runtime with a tool like JavaPoet or Byte Buddy, anyway?)