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.
$ git clone github.com/rafael-f/projeto21-singmeasong.git
$ cd projeto21-singmeasong/back-end/
$ npm i
$ cd ..
$ cd projeto21-singmeasong/front-end/
$ npm i
- Run back-end
$ npm run dev
- Run front-end
$ npm start
- Integration test:
npm run test:integrate
- Unit test:
$ npm run test:unit
- Full test:
$ npm run test
- First:
npm start
$ npx cypress open
- Select E2E tests;
- Select your favorite browser;
- Select test path of your desire;