Cucumber JS Browser Runner
Display all details
Run all
Results
Features:
total :
0
passed :
0
skipped :
0
failed :
0
pending :
0
Scenarios:
total :
0
passed :
0
skipped :
0
failed :
0
pending :
0
Steps:
total :
0
passed :
0
skipped :
0
failed :
0
pending :
0
Duration :
Api reference
CucumberJsBrowserRunner(<object>options) : return runner instance
Options
<integer> timeout - timeout in miliseconds for every step, if step will not call callback before it runner will stop execution and throw error
<boolean> captureConsoleOutput - if true runner will capture all console logs for further debugging
instance.loadFeatures(<array>features) - load features
Arguments
<array> features : pass either <string> feature name or <object> with feature name and background steps (<string> or <array>)
instance.run(<object>options)
Arguments
<array> tags - single <string> or <array> of tags
<function> callback - callback that will be called after test is done
instance.getReport() - generates report <object>
Report methods:
<function> getSummary() - returns <string> result - passed, skipped, failed
<function> getFailedScenarios() - returns <array> of failed scenarios
<function> getFailedFeatures() - returns <array> of failed features
instance.getConsoleOutput() - stringified console output
instance.debugConsoleOutput(instance.getConsoleOutput()) - reprints console output
Github project
Cucumber.js
Tests
Example how to setup runner
Cucumber.js browser runner
Cucumber JS Browser Runner
Run all
.....