Skip to content

Commit 12d96b4

Browse files
committed
test(cucumber_get_post): add documentation to launcg cucumber test
1 parent 13beba8 commit 12d96b4

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,23 @@ Test execution lifecycle:
319319

320320
# Integration tests only
321321
./mvnw failsafe:integration-test
322+
```
323+
324+
### Run Cucumber Tests
325+
326+
Cucumber tests use an H2 in-memory database (no Docker needed).
322327

323-
# Tests with specific tag (Cucumber)
324-
./mvnw test -Dcucumber.filter.tags="@smoke"
328+
```bash
329+
# Run all Cucumber tests
330+
./mvnw test -Dtest=CucumberIntegrationTest
331+
332+
# Run with a specific tag
333+
./mvnw test -Dtest=CucumberIntegrationTest -Dcucumber.filter.tags="@smoke"
325334
```
326335

336+
Feature files are located in `src/test/resources/features/`.
337+
Step definitions are in `src/test/java/feature/StepDefinition.java`.
338+
327339
### Test Coverage Report
328340

329341
```bash
@@ -338,7 +350,7 @@ Generated reports:
338350

339351
- **Framework**: JUnit 5
340352
- **Mocking**: Mockito
341-
- **BDD**: Cucumber (planned)
353+
- **BDD**: Cucumber
342354
- **Coverage**: JaCoCo
343355

344356
---

0 commit comments

Comments
 (0)