Re: junit 5 api or rather 4.13?
Scott Morgan <[email protected]> Mon, 10 Mar 2014 12:29:01 -0500
| Newsgroups | gmane.comp.java.junit.user |
|---|---|
| Message-ID | <CANEdHmiMqXgP6z-ssWsbDDTLCKGX-ewOpHQaxC3P3CrTDr6p8g@mail.gmail.com> |
Agh I sent that last message before it was finished agh, the enter key on GMail. On a even higher level I will draw this up in UML and then send it but here is a quick preview; My Idea would break backward compatibility with junit 4! So the basic idea would be that; Result would correspond to a single @Test method run ClassResults would be a List of Result instances for a TestClass Results would contain a List of ClassResults instances for a invocation of JUnitCore.runClasses So there would also be a interface I_ResultsSummary which ClassResults and Results would implement and would have methods like getTotalRunCount(), getTotalAssertionCount() Each class would have a Immutable variant. The UML will be easier to understand. Cheers, Scott On Mon, Mar 10, 2014 at 12:23 PM, Scott Morgan <[email protected]> wrote: > Hi Again All, > > After yet more work, I think my suggestions should go into the junit > 4.13+ version of junit. > > I am thinking that the entire Result class should be reworked for junit 5 > and that > > JUnitCore.runClasses > > should actually return a class called Results (note the s for plural) > > > So the basic idea would be that; > > Result would correspond to a single @Test method > > ClassResults would be a List of Result instances for a TestClass > > Results would contain a List of ClassResults instances for a invocation > of JUnitCore.runClasses >