[go: up one dir, main page]

Skip to content

Commit

Permalink
Add some details for test local running (nytimes#17)
Browse files Browse the repository at this point in the history
* add some details for test local running

* Update README.md
  • Loading branch information
Emmawaterman authored Jul 26, 2019
1 parent 8337fc3 commit c22c78b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ passed: tests.yaml | root | /
0 skipped
```

Tip: If your test cases have conditions on environment variables (see `conditions` in [full example](#full-test-example)), remember to include `-e "<ENV_VAR>=<value>"`. e.g.

```
docker run --rm \
-v $(pwd)/tests.yaml:/tests/tests.yaml \
-e "TEST_HOST=stg.example.com" \
-e "TEST_ENV=stg" \
nytimes/httptest
```

By default, the program parses all files in `$(pwd)/tests` recursively.
This can be changed using an environment variable.

Expand Down

0 comments on commit c22c78b

Please sign in to comment.