Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 8 Next »

🛠️ Testing Frameworks and Tools

  • Framework Details:

    • Mocha as the test runner

    • Chai for assertions

    • Puppeteer as the library for E2E

    • Minimist for environment parameterization

  • Version Information:

    • Chai Version: 4.3.6

    • Mocha Version: 10.7.3

    • Puppeteer: 23.3.1

    • Minimist: 1.2.8

📒 Test Organization and Structure

  • Directory Structure: root/tests/name.test.js

    Screenshot 2024-10-09 122651.png
  • Naming Conventions: The tests are named after their purpose followed by a .test extension and .js. An example for login is login.test.js

💡 Prerequisites

  • Node.js installed on your machine.

  • npm (Node Package Manager) available.

🗒️ Test Execution Instructions

  • Running Tests Locally: Step-by-step instructions on how to execute the tests locally, including any necessary commands.

  • npm install
    npm test
  • Running Tests on Staging:

    mocha '.\test\' --env=staging
  • Running Tests on Production:

    mocha '.\test\' --env=production
  • Continuous Integration (CI) Pipeline: If applicable, describe how tests are integrated into the CI pipeline and any configurations needed.

(tick) E2E Test Scenarios

  • No labels