-
Follow instructions in README to setup the system running locally.
-
Check on Zulip chat if any of the PR's here are high-priority if the priority is not set already.
-
If the PRs are not prioritized then pick any 1 PR from the list from the link in step 2 to test locally.
-
Go to the Issue that PR is fixing and follow the steps to reproduce that issue while you are under the develop branch.
-
Run the following commands to get to the PR branch, where
<contributor>
is the GitHub username of the contributor that submitted the PR:
git clone https://github.com/<contributor>/mentorship-backend/
git checkout <branch-name>
-
Verify the code addition/deletions in the PR.
-
Reproduce the issue and test the fix.
-
Get screenshots/gifs of before and after the fix and attach them to the PR comment.
-
If the testing is unsuccessful and fixes are needed change then remove the label
Status: Needs Testing
and addStatus: Needs Review
. -
If the testing is successful and no improvements needed then remove the label
Status: Needs Testing
and addStatus: Ready to Merge
.
The changes made in this PR were tested locally. Following are the results:
1. Code review - Done or Not Done
2. All possible responses (positive and negative tests) were tested as below:
* _Test1 Description_
_Screenshot/gif_:
_Expected Result_:
_Actual Result_:
* _Test2 Description_
_Screenshot/gif_:
_Expected Result_:
_Actual Result_:
...
3. Additional testcases covered:
* _Test1 Description_
_Screenshot/gif_:
_Expected Result_:
_Actual Result_:
4. Additional Comments:
5. Status of PR Changed to: Needs Review or Ready to Merge.
Register 3 users. Follow instructions in this video
The users used here are
- testusera
- testuserb
- testuserc
Steps to login and capture the token are shown in this video
In this example they are:
- testusera - ID: 120
- testuserb - ID: 121
- testuserc - ID: 122
In this example testusera is the mentee and testuserb is the mentor and testusera is sending the request. The steps to do this is explained in this video.
Check pending requests for testusera. The relation should be in state 1 (pending). Note the request ID. Here it is 13.
testuserb accepts the mentorship request from testusera.
List the current relationships of testusera. The relation should be state 2 (accepted).
testusera creates a task for the relation 13. This will be successful because testusera is a part of this relation.
testuserc cannot create a task under this relation