ppodgorsek / spring-test-dbunit

Integration between the Spring testing framework and DBUnit
Apache License 2.0
41 stars 6 forks source link

Document DBUnit Dependency #159

Open pbtura opened 10 months ago

pbtura commented 10 months ago

In the current documentation, it is not clear that dbunit needs to be added as a maven dependency IN ADDITION to the spring-test-dbunit-core dependency. Assuming that the dbunit library is included and failing to add it to maven results in errors that are very difficult to diagnose. For example test databases will not be populated, but the underlying error gets swallowed making it hard to track down why.

The READ ME file should be updated to clarify that an explicit dependency on dbunit is required.

ppodgorsek commented 10 months ago

Well spotted! I think it would make more sense for the DBUnit dependency's scope to be changed from provided to compile.