Cucumber / Cucumber Js / Docs
debug
As a Cucumber user I want to enable debug logging So that I can troubleshoot issues with my project
Background:
- Given a file named "
features/a.feature" with:gherkinFeature: some feature Scenario: Given a step passes When a step passes Then a step passes - And a file named "
features/step_definitions/cucumber_steps.js" with:rubyconst {Given} = require('@cucumber/cucumber') Given(/^a step passes$/, function() {});
Scenario:
- Given my env includes "
DEBUG=cucumber" - When I run cucumber-js
- Then the error output contains the text:
text
No configuration file found
Scenario:
- When I run cucumber-js
- Then the error output does not contain the text:
text
No configuration file found
Source: features/debug.feature at commit 3ac6ecda, Cucumber Js (MIT license).