How amangupta0709/lenstest works
Project Type and Purpose
• This is a standalone backend service (no frontend) built with Spring Boot.
• Its primary purpose is to orchestrate and execute Cucumber-based tests against a MongoDB instance, expose a REST endpoint to trigger test runs, and store test results in MongoDB for later retrieval or reporting.
File Structure Analysis
Top-level directories:
• backend/ – all source code, configuration, and build scripts
• LICENSE, README.md – project metadata
Inside backend/:
• .mvn/, mvnw, pom.xml – Maven build wrapper and project descriptor
• src/main/java/com/db/lenstest/
– config/ (MongoDB & Cucumber configs)
– controller/ (REST API entrypoint)
– dto/ (data-transfer objects for requests & statuses)
– listener/ (ExtentCucumberListener to hook into Cucumber events)
– model/ (domain models for TestExecution, TestDocument, etc.)
– repository/ (Spring Data MongoDB repository)
– runner/ (custom TestCucumberRunner)
– service/ (TestOrchestrator coordinating test execution)
– steps/ (Cucumber step definitions)
– LenstestApplication.java (Spring Boot main class)
• src/main/resources/
– application.properties & chaintest.properties (service config)
– extent-*.xml/js/css (report styling/config)
– features/ (Cucumber feature files)
• src/test/java… – simple application context test