Unit tests in liquibase

Is there a way to do unit testing in liquibase? how can they be implemented?

I don’t think there is any unit testing built-in to Liquibase. One feature that Liquibase does have is the “helper” commands that will just return a SQL script, instead of actually executing it. This will allow you to inspect the SQL that is generated by Liquibase. These commands all end in “SQL”, such as “updateSQL”, “rollbackSQL”, etc.

https://docs.liquibase.com/commands/community/updatesql.html

Maybe you can describe in more detail what you are trying to accomplish.

1 Like

thanks i found this New Test Automation Framework for Liquibase | Liquibase.org

1 Like

Thanks for pointing out that article.