This document provides guidelines for setting up and running the automated test suite for CTypeHub, utilizing Playwright for end-to-end testing and TypeScript for scripting. CTypeHub facilitates the management of digital credentials on the blockchain.
- Node.js: Version 14.x or higher.
- Package Manager: npm is used to manage project dependencies.
- TypeScript: All tests are written in TypeScript 4.x, leveraging its type-safe capabilities to enhance test reliability.
- Node.js Installation: Ensure Node.js (14.x or higher) is installed. Download from Node.js official website.
- Clone the Repository:
git clone https://github.com/enozen/CTypeHub.git
- Install Dependencies: Navigate to the cloned directory and install dependencies:
npm install
- Playwright Setup: Follow the Playwright setup instructions to ensure browsers are correctly installed for testing:
npx playwright install
- Execute the entire test suite with:
npx playwright test
- To run a specific test file:
npx playwright test path/to/test/file.spec.ts