Skip to content

Commit

Permalink
update e2e tests in README (#3778)
Browse files Browse the repository at this point in the history
* update e2e tests in README

* add clarifying note

* added note about Prebid.org members + browserstack
  • Loading branch information
jsnellbaker authored and bretg committed May 1, 2019
1 parent 352da36 commit c48817c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,20 @@ gulp test-coverage
gulp view-coverage
```

For end-to-end testing, edit the example file `./integrationExamples/gpt/pbjs_example_gpt.html`:
For Prebid.org members with access to BrowserStack, additional end-to-end testing can be done with:

1. Change `{id}` values appropriately to set up ad units and bidders
2. Set the path to Prebid.js in your example file as shown below (see `pbs.src`).
```bash
gulp e2e-test --host=test.localhost
```

To run these tests, the following items are required:
- setup an alias of localhost in your `hosts` file (eg `127.0.0.1 test.localhost`); note - you can use any alias. Use this alias in the command-line argument above.
- access to [BrowserStack](https://www.browserstack.com/) account. Assign the following variables in your bash_profile:
```bash
export BROWSERSTACK_USERNAME='YourUserNameHere'
export BROWSERSTACK_ACCESS_KEY='YourAccessKeyHere'
```
You can get these BrowserStack values from your profile page.

For development:

Expand Down

0 comments on commit c48817c

Please sign in to comment.