This is an automated email from the ASF dual-hosted git repository. ntimofeev pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cayenne-website.git
The following commit(s) were added to refs/heads/master by this push: new 48fd3ad Updated test information about TestContainer new eb12f44 Merge pull request #8 from OlegKhodokevich/updating_test_information_about_testContainer 48fd3ad is described below commit 48fd3ad7df2831342bb11ddb0959797cbb88c680 Author: Oleg Khodokevich <oleg.khodokev...@mail.ru> AuthorDate: Mon Jan 31 13:11:09 2022 +0300 Updated test information about TestContainer --- src/main/site/content/dev/running-unit-tests.md | 26 ++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/main/site/content/dev/running-unit-tests.md b/src/main/site/content/dev/running-unit-tests.md index fe97242..b0b6570 100644 --- a/src/main/site/content/dev/running-unit-tests.md +++ b/src/main/site/content/dev/running-unit-tests.md @@ -45,7 +45,8 @@ For this databases you can run tests without any additional configuration by onl {{% gap %}} -## Running Against Database in Docker +## Running Against Database in Docker +**(Before Cayenne 4.2)** Another handy option to run Cayenne tests is with preconfigured docker profiles. The only thing you need is to install Docker. @@ -62,6 +63,29 @@ Like with in-memory databases no additional setup is required: {{% gap %}} + +## Running Against Database with TestContainer +**(Since Cayenne 4.2)** + +Another handy option to run Cayenne tests is with [TestContainer](https://www.testcontainers.org/) which use Docker. +The only thing you need is to install Docker and run it. + +You can run tests using following *cayenneTestConnection* properties: + +* mysql-tc +* postgres-tc +* sqlserver-tc +* mariadb-tc +* oracle-tc +* db2-tc + +Like with in-memory databases no additional setup is required: + + $ mvn verify -DcayenneTestConnection=mysql-tc + +{{% gap %}} + + ## Running Against a Specific Database