./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'],
};
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
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