Skip to content

Commit 689848a

Browse files
committed
Added test.md
1 parent d0e6856 commit 689848a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

test.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.

0 commit comments

Comments
 (0)