Skip to content

Commit c91dd01

Browse files
blafondDavideD
authored andcommitted
Added instructions
1 parent bb12b9e commit c91dd01

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tooling/jbang/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Rapid Reactive testing with JBang
2+
3+
If you want to see them in action, here's how it works:
4+
5+
1. [Download JBang](https://www.jbang.dev/download)
6+
2. Start the default Postgres we use for testing (you can replace podman with docker):
7+
```
8+
podman run --rm --name HibernateTestingPGSQL \
9+
-e POSTGRES_USER=hreact -e POSTGRES_PASSWORD=hreact -e POSTGRES_DB=hreact \
10+
-p 5432:5432 postgres:13.2
11+
```
12+
3. JBang it:
13+
```
14+
jbang https://github.com/hibernate/hibernate-reactive/tree/main/tooling/jbang/Example.java
15+
```
16+
or
17+
```
18+
jbang https://github.com/hibernate/hibernate-reactive/tree/main/tooling/jbang/SampleIssueTest.java
19+
```
20+
4. (Optional) If you want to edit the class with Idea
21+
```
22+
jbang edit --open=idea https://github.com/hibernate/hibernate-reactive/tree/main/tooling/jbang/SampleIssueTest.java
23+
```
24+
25+
_NOTE: For testing with other DB's see [podman.md](https://github.com/hibernate/hibernate-reactive/blob/main/podman.md)_.

0 commit comments

Comments
 (0)