Skip to content

Feature: Fail when no scenarios found #2296

Open
@sashokbg

Description

@sashokbg
Feature: Fail when no scenarios were found

  As a test automation developer
  I would like cucumber js to fail when it does not detect any scenarios
  To make sure that cucumber-js does not falsely report that everything is ok

Current state:

Example: Bad configuration
  Given I have badly configured my cucumber-js
  When I run my tests
  Then Cucumber will not find any test cases
  And Exit with code 0

Desired functionality:

Example: Bad configuration exits with error
  Given I have badly configured my cucumber-js
  When I run my tests from CLI with a special flag
  Then Cucumber will not find any tests cases
  But it will exit with error code 1

There is a discussion in slack and some people proposed --minimum-tests 1 or --expect-tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚡ enhancementRequest for new functionalityplugins-usecaseA use case that could potentially by served by our nascent plugins concept

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions