Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.11 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.11 KB

This is a sample for es2015 and requirejs

From the project root run

./src/cli.js chrome -c examples/es2015/aw.config.js

aw.config.js

module.exports = {
  url: 'http://localhost:9676/examples/es2015/index.html',
  glob: ['examples/es2015/*.spec.js'],
  'transform.include': ['examples/es2015/*.js'],
};

Generating coverage

To be able to generate coverage we need to serve the files with a http server and instrument the source files

./src/cli.js chrome -c examples/es2015/aw.config.js --coverage

Debugging

Using vscode

Install Debugger for Chrome

Add configuration to launch Chrome and the cdp runner

If your favourite editor doesn't support chrome debugging you can pass the chrome.devtools=true option to run Chrome with --auto-open-devtools-for-tabs

./src/cli.js chrome -c examples/es2015/aw.config.js --chrome.devtools=true