The repository demonstrates how to integrate Liquibase into a test framework to efficiently manage and reset test data within your database.
There are three ways to integrate Liquibase into your test framework: by using the Liquibase Maven plugin, by adding Liquibase Core and using its API in automated tests, and by utilizing Liquibase CLI capabilities. This repository demonstrates how to integrate Liquibase into a Java + Maven + Selenium WebDriver framework, a popular combination nowadays.
- Have docker
- Have maven
- Have php
- Have chrome
- Navigate to docker folder and run MySQL docker database
docker-compose -f docker-compose-my-sql.yml up
- Navigate to web folder and start a built-in PHP web server
php -S localhost:8000
- Navigate to root folder and run tests
mvn test
- /bin folder contains Liquibase CLI
- /docker folder contains MySQL docker-compose file
- /src/main/java folder contains source code files
- /src/main/resources folder contains configuration files and chromedriver
- /src/main/test folder contains test classes
- /web folder contains a test PHP webpage