mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-17 04:29:57 -06:00
21 lines
576 B
JavaScript
21 lines
576 B
JavaScript
const banner = require('terminal-banner').terminalBanner
|
|
const allPaths = require('@bahmutov/all-paths')
|
|
const cypress = require('cypress')
|
|
|
|
console.log('cypress is', cypress)
|
|
|
|
const onSuccess = (runResult) => {
|
|
banner('Cypresss results')
|
|
console.log('%o', runResult)
|
|
banner('Results paths')
|
|
// TODO find a better way to show all available properties in the runResult object
|
|
// maybe a tree representation in the terminal?
|
|
console.log(allPaths(runResult).join('\n'))
|
|
}
|
|
|
|
cypress.run({
|
|
spec: './cypress/e2e/a-spec.cy.js',
|
|
})
|
|
.then(onSuccess)
|
|
.catch(console.error)
|