Skip to content

Testing

Moisés Córdova edited this page Nov 13, 2018 · 12 revisions
  1. Go to folder path by terminal
  2. Initialize the application by node app.js if you're running only local, by heroku web local if you are already logged in Heroku or by nodemon if you prefer it

Local testing

  • For local testing you need to change the postman URL for your local one, then run
  • Ensure database is created with the correct parameters

Online testing

Testing Note

For testing purposes two types of users shown below have been created, for run postman Collection just log in with any of the accounts.

Permissions

  • Non-Admin Users:
  1. Modify it's own information
  2. See it's friend requests
  3. Add or remove a friend
  4. Create a question (Must be approved by an administrator)
  5. Create a new game
  6. Review results of it's games
  7. Play: Answer questions into a game
  • Admin: It has administrator privileges and has the power to:
  1. Perform any action that a non-admin user executes
  2. Approve or eliminate questions
  3. Remove users
  4. See all questions
  5. See all users
  6. See all games
  7. See any specific question
  8. See any specific user

Users for test

Admin

User (without admin privileges)

Wiki

Getting started

Testing and Deploy

License

ISC

Authors

Acknowledgements

Nancy Michelle Torres Villanueva for her repository "expressjs-101 - Step by step to learn ExpressJS"

Clone this wiki locally