Skip to content

Commit

Permalink
update readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshshinde2012 committed May 2, 2024
1 parent da7e03f commit 8e51118
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 27 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,7 @@ The swagger documentation is available at the following url `${host}/docs`:
<a href="https://blog.santoshshinde.com/">
<img src="https://img.shields.io/badge/Blog-black?style=for-the-badge&logo=medium&logoColor=white" alt="Medium Badge"/>
</a>
<a href="https://www.buymeacoffee.com/santoshshin" target="_blank">
<img src="https://img.shields.io/badge/buymeacoffee-black?style=for-the-badge&logo=buymeacoffee&logoColor=white" alt="Buy Me A Coffee"/>
</a>
</div>
54 changes: 27 additions & 27 deletions test-report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,18 @@
<file path="/Users/santosh/Documents/workspace/github/node-ts-sequelize-pg-boilerplate/tests/unit-tests/lib/logger.spec.ts">
<testCase name="Logger Lib should create a new log directory if one doesn&apos;t already exist" duration="5"/>
</file>
<file path="/Users/santosh/Documents/workspace/github/node-ts-sequelize-pg-boilerplate/tests/unit-tests/components/system-status/SystemStatusController.spec.ts">
<testCase name="System Status Controller test getError method" duration="8"/>
<testCase name="System Status Controller test getSystemInfo method" duration="3"/>
<testCase name="System Status Controller test getServerTime method" duration="1"/>
<testCase name="System Status Controller test getResourceUsage method" duration="0"/>
<testCase name="System Status Controller test getProcessInfo method" duration="1"/>
</file>
<file path="/Users/santosh/Documents/workspace/github/node-ts-sequelize-pg-boilerplate/tests/unit-tests/middleware/error-handler.spec.ts">
<testCase name="ErrorHandler middleware with 0 status code" duration="4"/>
<testCase name="ErrorHandler middleware with 200 status code" duration="2"/>
<testCase name="ErrorHandler middleware with 200 status code" duration="0"/>
<testCase name="ErrorHandler middleware with 200 status code" duration="1"/>
<testCase name="ErrorHandler middleware with 200 status code and updated env variables" duration="0"/>
</file>
<file path="/Users/santosh/Documents/workspace/github/node-ts-sequelize-pg-boilerplate/tests/integration-tests/app.integration.spec.ts">
<testCase name="status integration tests can get default route success" duration="12"/>
<testCase name="status integration tests can get default web route success" duration="3"/>
</file>
<file path="/Users/santosh/Documents/workspace/github/node-ts-sequelize-pg-boilerplate/tests/unit-tests/components/enquiry/EnquiryService.spec.ts">
<testCase name="EnquiryService should return all enquiries" duration="4"/>
<testCase name="EnquiryService should throw error if failed to fetch enquiries" duration="5"/>
<testCase name="EnquiryService should return particular enquiry by id" duration="1"/>
<testCase name="EnquiryService should throw error if failed to fetch empty enquiry by id" duration="2"/>
<testCase name="EnquiryService should throw error if failed to fetch enquiry by id" duration="0"/>
<testCase name="EnquiryService should update enquiry with valid input" duration="1"/>
<testCase name="EnquiryService should throw an error if it fails to update as it failed to find the enquiry by id" duration="0"/>
<testCase name="EnquiryService should throw an error if it fails to update" duration="0"/>
<testCase name="EnquiryService should create a new enquiry with valid input" duration="1"/>
<testCase name="EnquiryService should throw error if failed to create enquiry" duration="0"/>
<testCase name="EnquiryService should return true if enquiry is deleted successfully" duration="0"/>
<testCase name="EnquiryService should return false if no enquiry is deleted" duration="0"/>
<testCase name="EnquiryService should throw error if failed to delete enquiry" duration="0"/>
<file path="/Users/santosh/Documents/workspace/github/node-ts-sequelize-pg-boilerplate/tests/unit-tests/components/system-status/SystemStatusController.spec.ts">
<testCase name="System Status Controller test getError method" duration="3"/>
<testCase name="System Status Controller test getSystemInfo method" duration="2"/>
<testCase name="System Status Controller test getServerTime method" duration="1"/>
<testCase name="System Status Controller test getResourceUsage method" duration="0"/>
<testCase name="System Status Controller test getProcessInfo method" duration="1"/>
</file>
<file path="/Users/santosh/Documents/workspace/github/node-ts-sequelize-pg-boilerplate/tests/unit-tests/components/enquiry/EnquiryController.spec.ts">
<testCase name="Enquiry Controller should register routes and return router" duration="2"/>
Expand All @@ -45,8 +26,27 @@
<testCase name="Enquiry Controller should throw BAD_REQUEST error if name and country are not provided" duration="0"/>
<testCase name="Enquiry Controller should handle errors in create enquiry" duration="1"/>
<testCase name="Enquiry Controller should update enquiry" duration="0"/>
<testCase name="Enquiry Controller should handle errors in update enquiry" duration="1"/>
<testCase name="Enquiry Controller should handle errors in update enquiry" duration="0"/>
<testCase name="Enquiry Controller should delete enquiry" duration="0"/>
<testCase name="Enquiry Controller should handle errors in delete enquiry" duration="0"/>
</file>
<file path="/Users/santosh/Documents/workspace/github/node-ts-sequelize-pg-boilerplate/tests/unit-tests/components/enquiry/EnquiryService.spec.ts">
<testCase name="EnquiryService should return all enquiries" duration="4"/>
<testCase name="EnquiryService should throw error if failed to fetch enquiries" duration="5"/>
<testCase name="EnquiryService should return particular enquiry by id" duration="0"/>
<testCase name="EnquiryService should throw error if failed to fetch empty enquiry by id" duration="2"/>
<testCase name="EnquiryService should throw error if failed to fetch enquiry by id" duration="0"/>
<testCase name="EnquiryService should update enquiry with valid input" duration="1"/>
<testCase name="EnquiryService should throw an error if it fails to update as it failed to find the enquiry by id" duration="0"/>
<testCase name="EnquiryService should throw an error if it fails to update" duration="1"/>
<testCase name="EnquiryService should create a new enquiry with valid input" duration="0"/>
<testCase name="EnquiryService should throw error if failed to create enquiry" duration="0"/>
<testCase name="EnquiryService should return true if enquiry is deleted successfully" duration="0"/>
<testCase name="EnquiryService should return false if no enquiry is deleted" duration="0"/>
<testCase name="EnquiryService should throw error if failed to delete enquiry" duration="1"/>
</file>
<file path="/Users/santosh/Documents/workspace/github/node-ts-sequelize-pg-boilerplate/tests/integration-tests/app.integration.spec.ts">
<testCase name="status integration tests can get default route success" duration="12"/>
<testCase name="status integration tests can get default web route success" duration="2"/>
</file>
</testExecutions>

0 comments on commit 8e51118

Please sign in to comment.