Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Database Rider

database-rider.github.io

  • Free plan
  • Self-hosted

What Database Rider is

Database Rider connects DBUnit dataset handling with JUnit tests to help developers prepare database state for testing. It provides rules for JUnit 4 and an extension for JUnit 5, both of which can load state from dataset annotations. CDI tests can use an interceptor that reads `@DataSet`, and the project includes a CDI-aware Cucumber runner for database-backed tests. Dataset files can be written in JSON, YAML, XML, XLS, or CSV, with configuration supplied through annotations or YAML files. Datasets support date and time values as well as Groovy and JavaScript scripts; expected datasets can include regular expressions. The documentation describes dataset export in those formats and lists support for multiple databases. Other listed features include database connection leak detection and data quality checks. The core module is shown as a Maven dependency with test scope. Database Rider is free and open source under the Apache 2 license, and the project site names Rafael M. Pestano as maintainer. It is self-hosted, with Java, Groovy, and JavaScript listed as test languages. The JUnit 4 DBUnit rule requires a JDBC connection to be created.

Who it suits

It suits developers who want to seed database state for JUnit tests, including teams using CDI or Cucumber integrations. It is intended for self-hosted test workflows.

Good to know, and what to watch

  • Provides integrations for JUnit 4, JUnit 5, CDI, and Cucumber.
  • Supports JSON, YAML, XML, XLS, and CSV datasets.
  • Expected datasets can contain regular expressions.
  • Includes dataset export and connection leak detection.
  • Free and open source under Apache 2.
  • The JUnit 4 DBUnit rule requires a JDBC connection.
  • The project is self-hosted.

The verdict

Database Rider offers several ways to prepare and check database state within Java testing workflows. Check the JDBC requirement if using its JUnit 4 DBUnit rule.

What the maker publishes

Additional features
It includes dataset export and database connection leak detection. source
CDI integration
A CDI interceptor can read @DataSet to prepare the database in CDI tests. source
Configuration
Dataset configuration can be supplied through annotations or YAML files. source
Configuration
Dataset and DBUnit configuration can be provided through annotations or YAML files. source
Connection checks
The listed features include database connection leak detection. source
Cucumber integration
The project includes a CDI-aware Cucumber runner for database-backed tests. source
Database support
The project lists support for multiple databases. source
Database support
The project lists support for multiple databases and uses a JDBC connection to create its DBUnit rule. source
Dataset features
Datasets support date and time values, Groovy and JavaScript scripts, and regular expressions in expected data. source
Dataset formats
It supports JSON, YAML, XML, XLS, and CSV datasets. source
Dataset formats
It supports datasets in JSON, YAML, XML, XLS, CSV, and XLSX formats. source
Distribution
The documentation shows the core module added as a Maven dependency with test scope. source
Expected data
Expected datasets can contain regular expressions. source
Export
The documentation describes exporting datasets, including to YAML, JSON, XML, XLS, and CSV. source
Intended users
The project is aimed at developers who want to seed database state for JUnit tests. source
JDBC requirement
The JUnit 4 DBUnit rule requires a JDBC connection to be created. source
JUnit support
It provides JUnit 4 rules and a JUnit 5 extension for preparing database state from dataset annotations. source
License
The published Maven project metadata identifies the license as Apache 2. source
License
The project repository identifies its license as Apache-2.0. source
Maintainer
The project site lists Rafael M. Pestano as maintainer. source
Purpose
Database Rider brings DBUnit closer to JUnit tests to make database testing easier. source
Purpose
Database Rider brings DBUnit into JUnit tests to support database testing. source
Scriptable datasets
Datasets can use Groovy and JavaScript scripts. source
Test frameworks
It provides integrations for JUnit 4, JUnit 5, CDI, and Cucumber tests. source

Checked against the maker's pages on 9 Oct 2026.