Unverified Commit 67780375 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #2584 from ethereum/env-test-local

Environment Variables For Running Tests Locally
parents 12039f0d 9cfd032c
gist_token = <token>
\ No newline at end of file
......@@ -109,9 +109,17 @@ To run the Selenium tests via Nightwatch:
- npm run nightwatch_local_console
- npm run nightwatch_local_remixd # remixd needs to be run
**NOTE:**
**the `ballot` tests suite requires to run `ganache-cli` locally.**
**the `remixd` tests suite requires to run `remixd` locally.**
- **the `ballot` tests suite** requires to run `ganache-cli` locally.
- **the `remixd` tests suite** requires to run `remixd` locally.
- **the `gist` tests suite** requires specifying a github access token in **.env file**.
```
gist_token = <token>
```
**note that this token should have permission to create a gist.**
## Usage as a Chrome Extension
......
......@@ -4786,6 +4786,12 @@
"is-obj": "^1.0.0"
}
},
"dotenv": {
"version": "8.2.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
"integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==",
"dev": true
},
"dotignore": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/dotignore/-/dotignore-0.1.2.tgz",
......
......@@ -30,6 +30,7 @@
"csjs-inject": "^1.0.1",
"csslint": "^1.0.2",
"deep-equal": "^1.0.1",
"dotenv": "^8.2.0",
"ethereumjs-util": "^6.2.0",
"ethers": "^4.0.27",
"events": "^3.0.0",
......
require('dotenv').config()
module.exports = function (browser, callback, url, preloadPlugins = true) {
browser
.url(url || 'http://127.0.0.1:8080')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment