0.0.1 • Published 5 years ago

@dxworks/tap-puppet v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Tap Puppet

Run zora and @dxworks/rite test in using puppeteer & puppeteer-firefox. This test runner will take either a single file or a glob passed to run your test. It bundles them with rollup;

#Example: glob

{
  "scripts": {
    "test": "npx tap-puppet test/**/*.test.js",
  }
}

#Example: single

{
  "scripts": {
    "test": "npx tap-puppet test/example.test.js"
  }
}

The following flags can also be used

{
  '--coverage': Boolean,
  '--firefox': Boolean,
  '--debug': Boolean,
  '--public': String,
  '-c': '--coverage',
  '-d': '--debug',
  '-f': '--firefox',
  '-p': '--public',
}

#Debugging

Sometime error messages are not clear coming back from the browser instance. using the --debug flag will open a browser running your test for easier debugging.