Skip to content

Testing

Shashank Kumar edited this page Apr 18, 2022 · 15 revisions

Unit Tests

Frontend

Dependencies

  • Jest
  • Enzyme

Coverage

  • Login (should render heading and should render all visual elements)

Run

  1. Change the directory to client : cd client
  2. Run unit tests: npm run test

Backend

Dependencies

No extra dependencies.

Coverage

  • Register User
  • Login and Logout
  • Session Validation
  • Post fetching, creation, and deletion

Run

  1. Change the directory to server: cd server\app\
  2. to run test: go test -v

Integration Tests

Coverage

  • Login, Logout
  • Register User
  • Navbar

Dependencies

  • Cypress

Run

  1. Change the directory to client : cd client
  2. Run cypress tests: npm run cypress:open
Clone this wiki locally