Skip to content

Instantly share code, notes, and snippets.

@mozafrank
Created October 14, 2020 23:20
Show Gist options
  • Select an option

  • Save mozafrank/132d220b8c3912466021e509df402244 to your computer and use it in GitHub Desktop.

Select an option

Save mozafrank/132d220b8c3912466021e509df402244 to your computer and use it in GitHub Desktop.

Testing a Mozlenium/Synthetics style check locally

Lets assume you have a check you want to run in mozlenium called my-check.js.

  1. git clone https://github.com/mozilla-it/mozlenium
  2. cd mozlenium/checkers/mozlenium
  3. npm i
  4. echo 'async function runner($browser, $driver, $secure) {' > check.js
  5. cat my-check.js >> check.js
  6. echo -e "}\nmodule.exports = runner;" >> check.js
  7. IS_CLI=1 node wrapper.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment