8000 [#1409] Add jbang template instructions · hibernate/hibernate-reactive@756204b · GitHub
[go: up one dir, main page]

Skip to content

Commit 756204b

Browse files
blafondDavideD
authored andcommitted
[#1409] Add jbang template instructions
Signed-off-by: blafond <blafond@redhat.com>
1 parent 892c91b commit 756204b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,20 @@ or you can [open it in your editor](https://github.com/jbangdev/jbang#editing) (
125125
jbang edit --open=idea testcase@hibernate/hibernate-reactive
126126
```
127127

128+
You can also generate and run a db-specific test. See available temp 9210 lates using: `jbang template list`
129+
130+
```
131+
cockroachdb-reproducer = Template for a test with CockroachDB using Junit 4, Vert.x Unit and Testcontainers
132+
db2-reproducer = Template for a test with Db2 using Junit 4, Vert.x Unit and Testcontainers
133+
mariadb-reproducer = Template for a test with MariaDB using Junit 4, Vert.x Unit and Testcontainers
134+
mysql-reproducer = Template for a test with MySQL using Junit 4, Vert.x Unit and Testcontainers
135+
pg-reproducer = Template for a test with PostgreSQL using Junit 4, Vert.x Unit and Testcontainers
136+
```
137+
138+
Example for PostgreSQL:
139+
- Generate java test from template: `jbang init --template=pg-reproducer pgTest.java`
140+
- Run the test: `jbang pgTest.java`
141+
128142
## Gradle build
129143

130144
The project is built with Gradle, but you do _not_ need to have Gradle

0 commit comments

Comments
 (0)
0