This sample project demonstrates the integration of Cucumber with a Spring Boot CRUD application using Spring Data JPA. The application provides RESTful API endpoints for managing student records.
- GET all Students: http://localhost:8080/student
- POST save Student: http://localhost:8080/student
- PUT update an existing student: http://localhost:8080/student
- DELETE delete an existing student: http://localhost:8080/student
Explore the API using the Swagger documentation available at http://localhost:8080/swagger-ui/index.html.
The project utilizes the Cucumber framework to develop integration test cases. After executing:
./gradlew test
The Cucumber test report can be accessed at build/reports/cucumber/cucumber-reports.html
Before running the application, make sure you have Java and Gradle installed.
# Build and run the app
./gradlew bootRun
To run Cucumber tests and generate a report:
# Execute cucumber tests and generate a report
./gradlew test
The following commands demonstrate how to build, run the application, and execute Cucumber tests.
# Build and run the app
./gradlew bootRun
# Execute cucumber tests and generate a report
./gradlew test