Skip to content

Commit a46a960

Browse files
committed
Update specmatic version to latest
1 parent 2d8188e commit a46a960

File tree

2 files changed

+58
-10
lines changed

2 files changed

+58
-10
lines changed

README.md

Lines changed: 57 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,63 @@ Here is the [contract](https://github.com/specmatic/specmatic-order-contracts/bl
1010

1111
The architecture diagram was created using the amazing free online SVG editor at [Vectr](https://vectr.com).
1212

13-
### How to run the application?
13+
### How to run the application manually?
1414

15-
1. Build the project using : `./mvnw clean install`
16-
2. For unix platform, run the application using : `./mvnw spring-boot:run`
17-
3. For windows platform, run the application using : `mvnw.cmd spring-boot:run`
15+
1. Build the project using:
16+
- For unix platform and powerShell:<br/>
17+
```shell
18+
./mvnw clean install
19+
```
20+
21+
- For windows command prompt:<br/>
22+
```shell
23+
mvnw.cmd clean install
24+
```
25+
26+
2. Run the application using:
27+
- For unix platform and powerShell:<br/>
28+
```shell
29+
./mvnw spring-boot:run
30+
```
31+
32+
- For windows command prompt:<br/>
33+
```shell
34+
mvnw.cmd spring-boot:run
35+
```
1836

1937
### How to test the application?
20-
1. Using maven: `mvn clean test`
21-
2. Using docker:
22-
- Start Docker Desktop
23-
- Run the application `./mvnw spring-boot:run`
24-
- Run the tests `docker run --network host -v "$PWD/specmatic.yaml:/usr/src/app/specmatic.yaml" -v "$PWD/build/reports/specmatic:/usr/src/app/build/reports/specmatic" specmatic/specmatic test --port=8090 --host=host.docker.internal`
38+
39+
#### 1. Using maven:
40+
- For unix platform and powerShell:<br/>
41+
```shell
42+
./mvnw test
43+
```
44+
45+
- For windows command prompt:<br/>
46+
```shell
47+
mvnw.cmd test
48+
```
49+
50+
#### 2. Using Docker Desktop:
51+
52+
1. Run the application using:
53+
- For unix platform and powerShell:
54+
```shell
55+
./mvnw spring-boot:run
56+
```
57+
58+
- For windows command prompt:<br/>
59+
```shell
60+
mvnw.cmd spring-boot:run
61+
```
62+
63+
2. Run the contract tests using:
64+
- For unix platform and powerShell: <br/>
65+
```shell
66+
docker run --rm -v --network host "$(pwd)/specmatic.yaml:/usr/src/app/specmatic.yaml" -v "$(pwd)/build/reports/specmatic:/usr/src/app/build/reports/specmatic" specmatic/specmatic test --port=8090
67+
```
68+
69+
- For windows command prompt:<br/>
70+
```shell
71+
docker run --rm -v --network host "%cd%/specmatic.yaml:/usr/src/app/specmatic.yaml" -v "%cd%/build/reports/specmatic:/usr/src/app/build/reports/specmatic" specmatic/specmatic test --port=8090
72+
```

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<properties>
1212
<kotlin.version>2.2.21</kotlin.version>
1313
<maven.compiler>17</maven.compiler>
14-
<specmatic.version>2.28.1</specmatic.version>
14+
<specmatic.version>2.29.0</specmatic.version>
1515
<spring.boot.version>3.5.7</spring.boot.version>
1616
</properties>
1717

0 commit comments

Comments
 (0)