File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ # Tests
2+ This readme documents the changes to the tests.
3+
4+ ## Initial Setup
5+ 1 . Please export username and repository that exists under your name.
6+ 2 . If you have no yet exported your Github token, create one [ here] ( https://github.com/settings/tokens ) and export it.
7+
8+ ``` bash
9+ export GITHUB_TOKEN=[Your GitHub Token]
10+ export GITHUB_USER=[Your User Name]
11+ export GITHUB_REPO=[Your Repo name that exists]
12+ ```
13+
14+ ## Optional settings
15+ - showResponse
16+ -- Set this to true if you would like to see the response JSON data. Otherwise it is omitted when running tests.
17+
18+ The following variables are for futureproofing. Generally won't need to be modified.
19+ - otherUser
20+ -- Another user's (not yourself) username.
21+ - otherUserInvalid
22+ -- An invalid username.
23+ - organizationInvalid
24+ -- An invalid organization.
25+ - repoInvalid
26+ -- An invalid repo.
27+
28+ The following variables should not be changed.
29+ - organization
30+ -- This is by default set to our dummy test organization "celestialbeings".
31+ - repo
32+ -- This is by default set to the dummy est repo "test-repo".
33+
34+ ## Random Generator
35+ The random string generator is located in Constants.scala and uses words from the wordBank array. It has three methods.
36+ - generateRandomString()
37+ -- Returns a String with three random words seperated by spaces.
38+ - generateRandomWord()
39+ -- Returns a String with a single random word.
40+ - generatedRandomInt()
41+ -- Returns a random Int from 0 to 999. This was added to avoid having to import the Random class in every file (so it is bundled with Constants)
42+ Use these to generate random field values to test create and update functions.
You can’t perform that action at this time.
0 commit comments