Skip to content

Argument parsing crashes badly if passing "spec: {}" #3957

@bahmutov

Description

@bahmutov

3.2.0

Crash Cypress by using npx cypress run --spec {}

Screen Shot 2019-04-12 at 9 34 33 AM

Same using NPM module

const cypress = require('cypress')
cypress.run({
  // this works fine
  // spec: 'cypress/integration/spec.js'
  // this crashes badly - hanging Cypress
  spec: {}

  /*
    this exits because no specs were found
    Can't run because no spec files were found.
    We searched for any files matching this glob pattern:
  */
  // spec: []
})

I have created example in cypress-io/cypress-test-tiny#44

Metadata

Metadata

Labels

good first issueGood for newcomerspkg/serverThis is due to an issue in the packages/server directorytype: user experienceImprovements needed for UX

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions