Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use spring boot with TestNG? [closed]

Most of the examples and documentation of testing Spring Boot use JUnit.

Is there an official example of testing Spring Boot with TestNG?

like image 373
SpringUser Avatar asked Apr 13 '18 12:04

SpringUser


1 Answers

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

like image 127
SrThompson Avatar answered Nov 17 '22 06:11

SrThompson