You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -75,10 +75,12 @@ Some references:
75
75
7. Send the pull request
76
76
77
77
####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)?)
83
78
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:
84
80
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`
0 commit comments