langgenius/dify · error · Error

Cucumber selected zero scenarios. Check the active tag expre

Error message

Cucumber selected zero scenarios. Check the active tag expression and paths.

What it means

Error "Cucumber selected zero scenarios. Check the active tag expression and paths." thrown in langgenius/dify.

Source

Thrown at e2e/support/cucumber-messages.ts:16

type CucumberMessage = {
  testCaseStarted?: unknown
}

export const countStartedCucumberScenarios = (contents: string) =>
  contents
    .split(/\r?\n/)
    .filter(Boolean)
    .map((line) => JSON.parse(line) as CucumberMessage)
    .filter((message) => message.testCaseStarted !== undefined).length

export const assertCucumberScenariosStarted = (contents: string) => {
  const started = countStartedCucumberScenarios(contents)

  if (started === 0)
    throw new Error('Cucumber selected zero scenarios. Check the active tag expression and paths.')
}

View on GitHub (pinned to ef8544b173)

When it happens

Trigger: Thrown at e2e/support/cucumber-messages.ts:16 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of langgenius/dify@ef8544b173 (2026-08-12). Data as JSON: /api/errors/95591606f6d7d0b9. Report an issue: GitHub.