Skip to content

Commit 0c39067

Browse files
committed
Include details about :testingUser
1 parent 61815c3 commit 0c39067

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ Some references:
7575
7. Send the pull request
7676

7777
####Creating a user for unit testing
78-
1. It is recommended to create an entire new user for the unit testing, since this library aims to test *all* endpoints (including moderation tasks and submitting and deleting submissions and comments).
79-
2. Create a multireddit whose name is *not* "jraw_testing", containing at least one subreddit
80-
3. Create a [Reddit app](https://ssl.reddit.com/prefs/apps). The type is recommended to be 'script'.
81-
4. Be a moderator of at least one subreddit. See [here](https://www.reddit.com/subreddits/create) to create one.
82-
5. Submit at least one selfpost (how about on [/r/jraw_testing2](https://www.reddit.com/r/jraw_testing2)?)
8378

79+
The [`:testingUser`](https://github.com/thatJavaNerd/JRAW/tree/master/testingUser) subproject is a script to help you get set up with JRAW. To run it, execute `TERM=dumb ./gradlew testingUser:run`. This script will:
8480

81+
1. Register a new user
82+
2. Create an OAuth2 app
83+
3. Record the username, password, client ID, and client secret in `credentials.json`
84+
4. Create a subreddit
85+
5. Create a multireddit
86+
6. Submit a self post to /r/jraw_testing2

0 commit comments

Comments
 (0)