Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.
/ singmeasong Public archive

Project FullStack with tests E2E using cypress and jest.

License

Notifications You must be signed in to change notification settings

raferdev/singmeasong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sing me a Song

Description:

This project is a complete model of testing software, envolving e2e, integrates and unit. With cypress, jest and supertest the front and back-end are completely.

Instalation:

$ git clone github.com/rafael-f/projeto21-singmeasong.git

$ cd projeto21-singmeasong/back-end/

$ npm i

$ cd ..

$ cd projeto21-singmeasong/front-end/

$ npm i

Usage:

  • Run back-end
$ npm run dev
  • Run front-end
$ npm start

Back-end tests:

  • Integration test:
npm run test:integrate
  • Unit test:
$ npm run test:unit
  • Full test:
$ npm run test

Front-end tests:

  • First:
npm start
$ npx cypress open
  • Select E2E tests;
  • Select your favorite browser;
  • Select test path of your desire;