Most of the examples and documentation of testing Spring Boot use JUnit.
Is there an official example of testing Spring Boot with TestNG?
There is a sample project with spring boot and TestNG:
https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-testng
It's one of multiple sample projects provided by spring. You can refer to the Spring Test documentation here.
https://docs.spring.io/spring/docs/5.0.5.RELEASE/spring-framework-reference/testing.html
Unfortunately (for TestNG users) most of the guides and documentation available show examples with JUnit, but the integration testing utilities of spring boot should work regardless of the testing framework used
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With