diff --git a/.env b/.env new file mode 100644 index 0000000000..31f4bf3c0e --- /dev/null +++ b/.env @@ -0,0 +1 @@ +gist_token = \ No newline at end of file diff --git a/README.md b/README.md index f28b71745c..2eaf34b977 100644 --- a/README.md +++ b/README.md @@ -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 = +``` +**note that this token should have permission to create a gist.** ## Usage as a Chrome Extension diff --git a/package-lock.json b/package-lock.json index d080d59785..68c677ca9a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 624bc92969..c85a1146c9 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test-browser/helpers/init.js b/test-browser/helpers/init.js index 6f0a2186f9..3af468370e 100644 --- a/test-browser/helpers/init.js +++ b/test-browser/helpers/init.js @@ -1,3 +1,5 @@ +require('dotenv').config() + module.exports = function (browser, callback, url, preloadPlugins = true) { browser .url(url || 'http://127.0.0.1:8080')