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

Environment Variables For Running Tests Locally
pull/1/head
yann300 5 years ago committed by GitHub
commit 67780375d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .env
  2. 12
      README.md
  3. 6
      package-lock.json
  4. 1
      package.json
  5. 2
      test-browser/helpers/init.js

@ -0,0 +1 @@
gist_token = <token>

@ -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

6
package-lock.json generated

@ -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",

@ -1,3 +1,5 @@
require('dotenv').config()
module.exports = function (browser, callback, url, preloadPlugins = true) {
browser
.url(url || 'http://127.0.0.1:8080')

Loading…
Cancel
Save