springtestdbunit/spring-test-dbunit

Gradle test task not work

sinh927 opened this issue · 1 comments

I use spring-test-dbunit 1.3.0, JUnit5, Eclipse and Gradle5.6.4.
The junit test works in Eclipse.
However, tests in Gradle do not work.

Gradle says no tests can be found.
If I run without writing a TransactionDbUnitTestExecutionListener OR DbUnitTestExecutionListener, the test works.

I have the same configuration but intellij idea instead of eclipse, and I have the same problem.
Idea can run tests but gradle doesn't see them.