Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

DbUnit
DbUnit

4
2
+ 1
0
Liquibase
Liquibase

118
147
+ 1
33
Add tool
- No public GitHub repository available -

What is DbUnit?

It is a JUnit extension (also usable with Ant) targeted at database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage.

What is Liquibase?

Liquibase is a leading open-source tool for database schema change management. Liquibase helps teams track, version, and deploy database schema and logic changes so they can automate their database code process with their app code process.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose DbUnit?
Why do developers choose Liquibase?
    Be the first to leave a pro
      Be the first to leave a con
      What companies use DbUnit?
      What companies use Liquibase?

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with DbUnit?
      What tools integrate with Liquibase?
        No integrations found

        Sign up to get full access to all the tool integrationsMake informed product decisions

        What are some alternatives to DbUnit and Liquibase?
        JUnit
        JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
        Mockito
        It is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. It doesn鈥檛 give you hangover because the tests are very readable and they produce clean verification errors.
        Cucumber
        Cucumber is a tool that supports Behaviour-Driven Development (BDD) - a software development process that aims to enhance software quality and reduce maintenance costs.
        RSpec
        Behaviour Driven Development for Ruby. Making TDD Productive and Fun.
        PHPUnit
        PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
        See all alternatives
        Decisions about DbUnit and Liquibase
        Miguel Suarez
        Miguel Suarez
        Lead Developer | 8 upvotes 165.2K views
        atJobsrepublicJobsrepublic
        Flyway
        Flyway
        Liquibase
        Liquibase
        PostgreSQL
        PostgreSQL
        #Migration
        #Backwards-compatible

        Flyway vs Liquibase #Migration #Backwards-compatible

        We were looking for a tool to help us integrating the migration scripts as part of our Deployment. At first sight both tools look very alike, are well integrated with Spring, have a fairly frequent development activity and short release cycles.

        Liquibase puts a lot of emphasis on independence with the DB, allowing you to create the scripts on formats like JSON and YML, abstracting away from SQL, which it's also supported. Since we only work with one DB type across services we wouldn't take much advantage of this feature.

        Flyway on the other hand has the advantage on being actively working on the integration with PostgreSQL 11, for it's upcoming version 6. Provides a more extensive set of properties that allow us to define what's allowed on what's not on each different environment.

        Instead of looking for a tool that will allow us to rollback our DB changes automatically, we decided to implement backwards-compatible DB changes, for example adding a new column instead of renaming an existing one, postponing the deletion of the deprecated column until the release has been successfully installed.

        See more
        Interest over time
        Reviews of DbUnit and Liquibase
        No reviews found
        How developers use DbUnit and Liquibase
        No items found
        How much does DbUnit cost?
        How much does Liquibase cost?
        Pricing unavailable
        Pricing unavailable
        News about DbUnit
        More news
        News about Liquibase
        More news