nicolasdanelon / front-e2e

Home Page:https://preact-e2e.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

e2e & unit testing demo

This section provides a demo for end-to-end and unit testing for frontend project.

Run the project and tests

Instructions on how to run the project and execute tests.

Install pnpm

To manage packages, first install pnpm.

npm install -g pnpm

Install dependencies

Install all the required dependencies for the project.

pnpm install # or pnpm i

Run development server

Start the development server if needed.

pnpm run dev

Run test

Execute the unit tests.

pnpm run test

See coverage

Check the code coverage of the tests.

pnpm run coverage

Set up python env and run e2e tests

Instructions on how to set up a Python environment to run end-to-end tests.

Change to e2e directory

Navigate to the directory containing the end-to-end tests.

cd e2e

Install pip

Install pip, the Python package installer. More details can be found in the pip instalation docs

Create virtual env

Create a Python virtual environment to manage dependencies.

pip3 install virtualenv 

get in the virtenv

Activate the virtual environment.

make env1

run the e2e tests

Finally execute the end-to-end tests.

meke run

About

https://preact-e2e.vercel.app


Languages

Language:JavaScript 61.4%Language:Python 32.4%Language:HTML 4.4%Language:Makefile 0.9%Language:CSS 0.9%