Protractor plugin for E2E coverage
npm install protractor-e2e-coveragenpm install protractor-e2e-coverage`$3
in your protractor conf file add this:
`javascript
plugins: [
{
path: '../node_modules/protractor-e2e-coverage/index.js',
outdir: 'test/coverage'
}
],
`$3
coverage setup comes predefined with what elements and events to listen to and report.
it's possible to set this up with the following command
`javascript
plugins: [
{
elements: [
// add one for each DOM type
{
'type': 'button',
'events': ['click'], // array of events to listen to
'elements': []
}
]
}
``> What the user sees, the user should be able to interact with