Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TESTING: Test API endpoints #66

Closed
6 tasks done
pbgnz opened this issue Feb 11, 2017 · 7 comments
Closed
6 tasks done

TESTING: Test API endpoints #66

pbgnz opened this issue Feb 11, 2017 · 7 comments

Comments

@pbgnz
Copy link
Contributor

pbgnz commented Feb 11, 2017

Task Description

The User API endpoints have been created and merged in issues #20 and #54. However, there are no unit tests done on the back-end.

Task Breakdown

This issue is divided in two parts:

  • Setup mocha and chai for the back-end testing

  • Test the User API endpoint

  • Test the User authenticate /me endpoint

  • Test the User logout /logout endpoint

  • Test the StudyGroup API endpoint

  • Test the Chat Api and related enpoints

Agile Information

Risk: low
Estimated time: 3hrs

@pbgnz pbgnz added this to the Sprint 2 milestone Feb 11, 2017
@pbgnz pbgnz removed the userstory label Feb 13, 2017
@Philippe229 Philippe229 removed this from the Sprint 2 milestone Feb 13, 2017
@jacobrs jacobrs added this to the Sprint 3 milestone Feb 17, 2017
@jacobrs jacobrs changed the title Testing: Test User API endpoints TESTING: Test User API endpoints Feb 17, 2017
@pbgnz
Copy link
Contributor Author

pbgnz commented Feb 18, 2017

After trying to setup mocha and chai for two days, I concluded that it would be easier to use the already installed testing module AVA. The two main reasons are that:

1- It would be more time efficient since AVA is already set-up and there are examples on MERN

2- It would be less heavy on the server

@jacobrs
Copy link
Owner

jacobrs commented Feb 18, 2017

Also test /me and /logout endpoints

@pbgnz
Copy link
Contributor Author

pbgnz commented Feb 27, 2017

Not goal of the current sprint.

@pbgnz pbgnz removed this from the Sprint 3 milestone Feb 27, 2017
@jacobrs
Copy link
Owner

jacobrs commented Feb 27, 2017

@pbgnz why is this no longer a goal? We require tests in order to close user stories.

@pbgnz
Copy link
Contributor Author

pbgnz commented Feb 27, 2017

@jacobrs the back-end is being tested using other tools at the moment. I wanted to prioritize the chat for this spring. So, me and Phil decided to meet this Friday after the tutorial and finish all the back-end tasks.

So if everything goes according to plan, I will be working on finishing the tests by next week or so. Before the list increases lol.

@pbgnz pbgnz added this to the Sprint 4 milestone Mar 13, 2017
@pbgnz
Copy link
Contributor Author

pbgnz commented Mar 14, 2017

This will be done this sprint. Phil can write the tests for his endpoints in this issue.

@pbgnz pbgnz changed the title TESTING: Test User API endpoints TESTING: Test API endpoints Mar 20, 2017
@pbgnz
Copy link
Contributor Author

pbgnz commented Mar 20, 2017

Cannot "mock" login for testing. Therefore, cannot test the authenticated endpoints.

@MartinSpasov MartinSpasov modified the milestones: Sprint 5, Sprint 4 Mar 23, 2017
pbgnz added a commit that referenced this issue Apr 3, 2017
pbgnz added a commit that referenced this issue Apr 7, 2017
pbgnz added a commit that referenced this issue Apr 7, 2017
pbgnz added a commit that referenced this issue Apr 7, 2017
pbgnz added a commit that referenced this issue Apr 11, 2017
dylanfernandes added a commit that referenced this issue Apr 11, 2017
#66 adding mongod to travis in services
dylanfernandes added a commit that referenced this issue Apr 12, 2017
#66 Tests for non authenticated endpoints
jacobrs pushed a commit that referenced this issue Apr 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants