Skip to content

Commit 38891bb

Browse files
docs: add Java dedup replay command
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
1 parent d59b1ad commit 38891bb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

java-dedup/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ java -javaagent:target/jacocoagent.jar=address=127.0.0.1,port=36320,destfile=tar
1515
-jar target/java-dedup-0.0.1-SNAPSHOT.jar
1616
```
1717

18+
When replaying with dynamic deduplication, pass the JaCoCo port through Keploy so the SDK can talk to the local JaCoCo TCP server:
19+
20+
```bash
21+
keploy test \
22+
-c "java -javaagent:target/jacocoagent.jar=address=127.0.0.1,port=36320,destfile=target/jacoco-keploy.exec,output=tcpserver -jar target/java-dedup-0.0.1-SNAPSHOT.jar" \
23+
--dedup --pass-through-ports 36320
24+
```
25+
1826
Run it with Docker Compose after the Maven package step has created `target/java-dedup-0.0.1-SNAPSHOT.jar`:
1927

2028
```bash

0 commit comments

Comments
 (0)