This section provides a demo for end-to-end and unit testing for frontend project.
Instructions on how to run the project and execute tests.
To manage packages, first install pnpm.
npm install -g pnpm
Install all the required dependencies for the project.
pnpm install # or pnpm i
Start the development server if needed.
pnpm run dev
Execute the unit tests.
pnpm run test
Check the code coverage of the tests.
pnpm run coverage
Instructions on how to set up a Python environment to run end-to-end tests.
Navigate to the directory containing the end-to-end tests.
cd e2e
Install pip, the Python package installer. More details can be found in the pip instalation docs
Create a Python virtual environment to manage dependencies.
pip3 install virtualenv
Activate the virtual environment.
make env1
Finally execute the end-to-end tests.
meke run