mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-03 21:40:28 -05:00
768da16a5e
* Option to disable Cypress the verbose results to stdout --quiet mode to disable the verbose results to stdout but still use specified formatter * Update cli/schema/cypress.schema.json Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com> * Cypress module support for --quiet Cypress module support for --quiet * Apply suggestions from code review Co-authored-by: Zach Bloomquist <github@chary.us> * Address feedback Address feedback, thanks Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com> Co-authored-by: Zach Bloomquist <github@chary.us>
54 lines
1.2 KiB
JavaScript
54 lines
1.2 KiB
JavaScript
const e2e = require('../support/helpers/e2e').default
|
|
|
|
describe('e2e stdout', () => {
|
|
e2e.setup()
|
|
|
|
it('displays errors from failures', function () {
|
|
return e2e.exec(this, {
|
|
port: 2020,
|
|
snapshot: true,
|
|
spec: 'stdout_failing_spec.coffee',
|
|
expectedExitCode: 3,
|
|
})
|
|
})
|
|
|
|
it('displays errors from exiting early due to bundle errors', function () {
|
|
return e2e.exec(this, {
|
|
spec: 'stdout_exit_early_failing_spec.js',
|
|
snapshot: true,
|
|
expectedExitCode: 1,
|
|
})
|
|
})
|
|
|
|
it('does not duplicate suites or tests between visits', function () {
|
|
return e2e.exec(this, {
|
|
spec: 'stdout_passing_spec.coffee',
|
|
timeout: 120000,
|
|
snapshot: true,
|
|
})
|
|
})
|
|
|
|
it('respects quiet mode', function () {
|
|
return e2e.exec(this, {
|
|
spec: 'stdout_passing_spec.coffee',
|
|
timeout: 120000,
|
|
snapshot: true,
|
|
quiet: true,
|
|
})
|
|
})
|
|
|
|
it('displays fullname of nested specfile', function () {
|
|
return e2e.exec(this, {
|
|
port: 2020,
|
|
snapshot: true,
|
|
spec: 'nested-1/nested-2/nested-3/*',
|
|
})
|
|
})
|
|
|
|
e2e.it('displays assertion errors', {
|
|
spec: 'stdout_assertion_errors_spec.js',
|
|
snapshot: true,
|
|
expectedExitCode: 4,
|
|
})
|
|
})
|