{"_id":"550ada9e921b7d0d00228889","__v":5,"category":{"_id":"550ada9d921b7d0d0022887b","__v":1,"pages":["550ada9e921b7d0d00228888","550ada9e921b7d0d00228889","550ada9e921b7d0d0022888a","550ada9e921b7d0d0022888b"],"version":"550ada9d921b7d0d00228876","project":"550a379f635c660d00527fd8","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-03-19T02:59:32.696Z","from_sync":false,"order":6,"slug":"resources","title":"Resources"},"version":{"_id":"550ada9d921b7d0d00228876","forked_from":"550a3b2542fff40d00ae5ffb","project":"550a379f635c660d00527fd8","__v":3,"createdAt":"2015-03-19T14:18:05.245Z","releaseDate":"2015-03-19T14:18:05.245Z","categories":["550ada9d921b7d0d00228877","550ada9d921b7d0d00228878","550ada9d921b7d0d00228879","550ada9d921b7d0d0022887a","550ada9d921b7d0d0022887b","550ada9d921b7d0d0022887c","550ada9d921b7d0d0022887d","5523e61e71c0542100993493","55246f72ccc28a0d0062c560"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0.0"},"user":"550a378e635c660d00527fd7","project":"550a379f635c660d00527fd8","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-03-19T02:59:52.724Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"## Create three applications on reddit\n\nThree different types of applications are required:\n\n- Script \n- Explicit\n- Implicit\n\nCreate these app types on reddit.\n\n## Create a \"test subreddit\"\n\nSome tests involve some messing around with a subreddit. Make a dummy subreddit that the user is a mod of that can be uses for testing purposes. The tests do not post any new content to reddit.\n\n## Setup the test configuration file\n\nCopy the file `test/confg.js.template` to `test/config.js`. Edit the values in `test/config.js` to match the values given in each application type.\n\n`test/config.js` is in `.gitignore` so do not worry about it accidentally appearing in the repository.\n\n## Run the tests\n\nMake sure you've installed all packages:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"npm install\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\nThen run:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"npm test\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\nIt should start to run the tests!","excerpt":"Isn't testing great?","slug":"running-tests","type":"basic","title":"Running Tests"}

Running Tests

Isn't testing great?

## Create three applications on reddit Three different types of applications are required: - Script - Explicit - Implicit Create these app types on reddit. ## Create a "test subreddit" Some tests involve some messing around with a subreddit. Make a dummy subreddit that the user is a mod of that can be uses for testing purposes. The tests do not post any new content to reddit. ## Setup the test configuration file Copy the file `test/confg.js.template` to `test/config.js`. Edit the values in `test/config.js` to match the values given in each application type. `test/config.js` is in `.gitignore` so do not worry about it accidentally appearing in the repository. ## Run the tests Make sure you've installed all packages: [block:code] { "codes": [ { "code": "npm install", "language": "javascript" } ] } [/block] Then run: [block:code] { "codes": [ { "code": "npm test", "language": "javascript" } ] } [/block] It should start to run the tests!