Skip to content

Commit 25cb67a

Browse files
committed
explain how to run tests in docker in README
1 parent ef1682e commit 25cb67a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@ swift test # test all Swift code, e.g. jextract-swift
4343
./gradlew test # test all Java code, including integration tests that actually use jextract-ed sources
4444
```
4545

46+
To test on Linux using Docker you can:
47+
48+
```bash
49+
# run only Swift tests (i.e. swift test)
50+
docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.2204.main.yaml run test-swift
51+
52+
# run only Java tests (i.e. gradle test)
53+
docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.2204.main.yaml run test-java
54+
55+
# run all tests
56+
docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.2204.main.yaml run test
57+
```
58+
4659
### Examples
4760

4861
#### JavaKit (Swift -> Java)

0 commit comments

Comments
 (0)