mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-02 04:29:55 -06:00
16 lines
376 B
JavaScript
16 lines
376 B
JavaScript
const cypress = require('cypress')
|
|
|
|
console.log('cypress is', cypress)
|
|
|
|
async function testSpec (spec) {
|
|
console.assert(spec, 'missing spec filename')
|
|
console.log('running test %s', spec)
|
|
const result = await cypress.run({ spec })
|
|
|
|
console.log(result)
|
|
}
|
|
(async () => {
|
|
await testSpec('./cypress/e2e/a-spec.cy.js')
|
|
await testSpec('./cypress/e2e/b-spec.cy.js')
|
|
})()
|