Files
cypress/packages/server/test/e2e/5_stdout_spec.js
T
Steve 768da16a5e feat: add quiet cli arg/module option (#7714)
* 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>
2020-06-22 11:10:35 -04:00

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,
})
})