Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
Merge 2887580 into 561fca2
Browse files Browse the repository at this point in the history
  • Loading branch information
BScong committed Jul 19, 2018
2 parents 561fca2 + 2887580 commit 187e3b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: node_js
node_js:
- "8.10"
before_script: echo $TEST_API_URL && if [ $TRAVIS_PULL_REQUEST != "false" ]; then export TEST_API_URL="https://scout-stage-pr-$TRAVIS_PULL_REQUEST.herokuapp.com"; fi && echo $TEST_API_URL
script: npm install && npm run lint && npm run travis-unit && if [ $TEST_API_ACCESS_TOKEN ]; then npm run integ-test; fi
script: npm install && npm run lint && npm run travis-unit
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ This can also be run on Heroku. Here are the instructions for running with Herok

# Tests

`npm test` runs the tests.
`npm test` runs the tests (lint, unit tests, integration tests).

For the integration tests, you need to add the `TEST_API_URL` and the `TEST_API_ACCESS_TOKEN` (JWT token) environment variables.
To run lint individually: `npm run lint`.

To run unit tests individually: `npm run unit-test`

For the integration tests, you need to add the `TEST_API_URL` and the `TEST_API_ACCESS_TOKEN` (JWT token) environment variables. To run them: `npm run integ-test`.

Travis runs automatically lint and unit-test. Integration tests need to be run manually.
2 changes: 1 addition & 1 deletion test/integration/ScoutTitles.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"item_id": "1437596179",
"sort_id": 7,
"resolved_url":
"http://www.theverge.com/a/luka-artificial-intelligence-memorial-roman-mazurenko-bot",
"https://www.theverge.com/a/luka-artificial-intelligence-memorial-roman-mazurenko-bot",
"title": "Speak, Memory",
"author": "Casey Newton",
"lengthMinutes": 30,
Expand Down

0 comments on commit 187e3b6

Please sign in to comment.