Closed bmarwell closed 4 years ago
hi @bmhm, the JUnit rule is essentially how MicroShed and Arquillian work, but they go about it in different ways:
Both of these frameworks provide JUnit rules/runners so that the user doesn't have to write/maintain them on their own.
I would not recommend using the com.ibm SPI shown in that article because of the following reasons:
Alright. Are there other possible solutions? I am thinking of environments which do not have docker available and arquillian might be hard to set up in a multi-module project. Imagine the .war
module with tons of (transitive) dependencies.
Docker is available in all public CI tools as far as I'm aware (TravisCI, Azure Pipelines, Jenkins, etc). Do you have some sort of custom environment that doesn't have Docker?
It is nice to see that public CI tools do have docker. Since your cheat sheet is targeted to those environment, I think this issue can be closed then. Thanks for looking into it!
Hi,
I found out that https://developer.ibm.com/wasdev/docs/writing-functional-tests-liberty/ has some more methods of starting an integration test.
While the current cheat sheet contains microshed and arquillian, there seem to be other methods:
The document is written by Iain Duncan and was written back in 2015. It is hosted on ibm.com (License?). If the Junit approach still might be reasonable today, maybe even create a new repo under https://github.com/OpenLiberty and host Junit4 rules/runners and Junit5 Extensions?
If this approach is not reasonable, maybe even document as well ("not recommended, because …").
I would also like to see the disadvantages and advantages listed for each method.