diff options
Diffstat (limited to 'public/cypress/support/index.js')
-rw-r--r-- | public/cypress/support/index.js | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/public/cypress/support/index.js b/public/cypress/support/index.js index 2f70722..7cac3de 100644 --- a/public/cypress/support/index.js +++ b/public/cypress/support/index.js @@ -15,9 +15,31 @@ // Import commands.js using ES2015 syntax: import './commands'; -import './homeCommands'; import './generalCommands'; +import './homeCommands'; import './ruleEngineCommands'; -// Alternatively you can use CommonJS syntax: -// require('./commands') +// const istanbul = require('istanbul-lib-coverage'); + +// const map = istanbul.createCoverageMap({}); + +// Cypress.on('window:before:unload', e => { +// const coverage = e.currentTarget.__coverage__; + +// if (coverage) { +// map.merge(coverage); +// } +// }); + +// after(() => { +// cy.window().then(win => { +// const coverage = win.__coverage__; + +// if (coverage) { +// map.merge(coverage); +// } + +// cy.writeFile('.nyc_output/out.json', JSON.stringify(map)); +// cy.exec('nyc report --reporter=html'); +// }); +// }) |