From 756204b2fa642ef7e49495cc41f9df2a10314e40 Mon Sep 17 00:00:00 2001 From: blafond Date: Tue, 18 Oct 2022 11:40:55 -0500 Subject: [PATCH] [#1409] Add jbang template instructions Signed-off-by: blafond --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index a29c2cff8..291ab6147 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,20 @@ or you can [open it in your editor](https://github.com/jbangdev/jbang#editing) ( jbang edit --open=idea testcase@hibernate/hibernate-reactive ``` +You can also generate and run a db-specific test. See available templates using: `jbang template list` + +``` +cockroachdb-reproducer = Template for a test with CockroachDB using Junit 4, Vert.x Unit and Testcontainers +db2-reproducer = Template for a test with Db2 using Junit 4, Vert.x Unit and Testcontainers +mariadb-reproducer = Template for a test with MariaDB using Junit 4, Vert.x Unit and Testcontainers +mysql-reproducer = Template for a test with MySQL using Junit 4, Vert.x Unit and Testcontainers +pg-reproducer = Template for a test with PostgreSQL using Junit 4, Vert.x Unit and Testcontainers +``` + +Example for PostgreSQL: + - Generate java test from template: `jbang init --template=pg-reproducer pgTest.java` + - Run the test: `jbang pgTest.java` + ## Gradle build The project is built with Gradle, but you do _not_ need to have Gradle