@serenity-js/cucumber 3.41.1 → 3.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/esm/adapter/CucumberCLIAdapter.d.ts +54 -0
- package/esm/adapter/CucumberCLIAdapter.d.ts.map +1 -0
- package/esm/adapter/CucumberCLIAdapter.js +215 -0
- package/esm/adapter/CucumberCLIAdapter.js.map +1 -0
- package/esm/adapter/CucumberConfig.d.ts +255 -0
- package/esm/adapter/CucumberConfig.d.ts.map +1 -0
- package/esm/adapter/CucumberConfig.js +2 -0
- package/esm/adapter/CucumberConfig.js.map +1 -0
- package/esm/adapter/CucumberFormat.d.ts +26 -0
- package/esm/adapter/CucumberFormat.d.ts.map +1 -0
- package/esm/adapter/CucumberFormat.js +48 -0
- package/esm/adapter/CucumberFormat.js.map +1 -0
- package/esm/adapter/CucumberOptions.d.ts +29 -0
- package/esm/adapter/CucumberOptions.d.ts.map +1 -0
- package/esm/adapter/CucumberOptions.js +145 -0
- package/esm/adapter/CucumberOptions.js.map +1 -0
- package/esm/adapter/index.d.ts +5 -0
- package/esm/adapter/index.d.ts.map +1 -0
- package/esm/adapter/index.js +5 -0
- package/esm/adapter/index.js.map +1 -0
- package/esm/adapter/output/OutputDescriptor.d.ts +8 -0
- package/esm/adapter/output/OutputDescriptor.d.ts.map +1 -0
- package/esm/adapter/output/OutputDescriptor.js +2 -0
- package/esm/adapter/output/OutputDescriptor.js.map +1 -0
- package/esm/adapter/output/SerenityFormatterOutput.d.ts +8 -0
- package/esm/adapter/output/SerenityFormatterOutput.d.ts.map +1 -0
- package/esm/adapter/output/SerenityFormatterOutput.js +2 -0
- package/esm/adapter/output/SerenityFormatterOutput.js.map +1 -0
- package/esm/adapter/output/StandardOutput.d.ts +9 -0
- package/esm/adapter/output/StandardOutput.d.ts.map +1 -0
- package/esm/adapter/output/StandardOutput.js +10 -0
- package/esm/adapter/output/StandardOutput.js.map +1 -0
- package/esm/adapter/output/StandardOutputDescriptor.d.ts +9 -0
- package/esm/adapter/output/StandardOutputDescriptor.d.ts.map +1 -0
- package/esm/adapter/output/StandardOutputDescriptor.js +12 -0
- package/esm/adapter/output/StandardOutputDescriptor.js.map +1 -0
- package/esm/adapter/output/TempFileOutput.d.ts +12 -0
- package/esm/adapter/output/TempFileOutput.d.ts.map +1 -0
- package/esm/adapter/output/TempFileOutput.js +14 -0
- package/esm/adapter/output/TempFileOutput.js.map +1 -0
- package/esm/adapter/output/TempFileOutputDescriptor.d.ts +17 -0
- package/esm/adapter/output/TempFileOutputDescriptor.d.ts.map +1 -0
- package/esm/adapter/output/TempFileOutputDescriptor.js +24 -0
- package/esm/adapter/output/TempFileOutputDescriptor.js.map +1 -0
- package/esm/adapter/output/index.d.ts +5 -0
- package/esm/adapter/output/index.d.ts.map +1 -0
- package/esm/adapter/output/index.js +5 -0
- package/esm/adapter/output/index.js.map +1 -0
- package/esm/errors/AmbiguousStepDefinitionError.d.ts +9 -0
- package/esm/errors/AmbiguousStepDefinitionError.d.ts.map +1 -0
- package/esm/errors/AmbiguousStepDefinitionError.js +11 -0
- package/esm/errors/AmbiguousStepDefinitionError.js.map +1 -0
- package/esm/errors/index.d.ts +2 -0
- package/esm/errors/index.d.ts.map +1 -0
- package/esm/errors/index.js +2 -0
- package/esm/errors/index.js.map +1 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +19 -0
- package/esm/index.js.map +1 -0
- package/esm/listeners/legacy/CucumberEventProtocolAdapter.d.ts +18 -0
- package/esm/listeners/legacy/CucumberEventProtocolAdapter.d.ts.map +1 -0
- package/esm/listeners/legacy/CucumberEventProtocolAdapter.js +127 -0
- package/esm/listeners/legacy/CucumberEventProtocolAdapter.js.map +1 -0
- package/esm/listeners/legacy/CucumberFormatterOptions.d.ts +15 -0
- package/esm/listeners/legacy/CucumberFormatterOptions.d.ts.map +1 -0
- package/esm/listeners/legacy/CucumberFormatterOptions.js +2 -0
- package/esm/listeners/legacy/CucumberFormatterOptions.js.map +1 -0
- package/esm/listeners/legacy/Dependencies.d.ts +17 -0
- package/esm/listeners/legacy/Dependencies.d.ts.map +1 -0
- package/esm/listeners/legacy/Dependencies.js +2 -0
- package/esm/listeners/legacy/Dependencies.js.map +1 -0
- package/esm/listeners/legacy/cucumber-0.d.ts +3 -0
- package/esm/listeners/legacy/cucumber-0.d.ts.map +1 -0
- package/esm/listeners/legacy/cucumber-0.js +100 -0
- package/esm/listeners/legacy/cucumber-0.js.map +1 -0
- package/esm/listeners/legacy/cucumber-1.d.ts +2 -0
- package/esm/listeners/legacy/cucumber-1.d.ts.map +1 -0
- package/esm/listeners/legacy/cucumber-1.js +2 -0
- package/esm/listeners/legacy/cucumber-1.js.map +1 -0
- package/esm/listeners/legacy/cucumber-2.d.ts +3 -0
- package/esm/listeners/legacy/cucumber-2.d.ts.map +1 -0
- package/esm/listeners/legacy/cucumber-2.js +8 -0
- package/esm/listeners/legacy/cucumber-2.js.map +1 -0
- package/esm/listeners/legacy/cucumber-3.d.ts +13 -0
- package/esm/listeners/legacy/cucumber-3.d.ts.map +1 -0
- package/esm/listeners/legacy/cucumber-3.js +27 -0
- package/esm/listeners/legacy/cucumber-3.js.map +1 -0
- package/esm/listeners/legacy/cucumber-4.d.ts +13 -0
- package/esm/listeners/legacy/cucumber-4.d.ts.map +1 -0
- package/esm/listeners/legacy/cucumber-4.js +26 -0
- package/esm/listeners/legacy/cucumber-4.js.map +1 -0
- package/esm/listeners/legacy/cucumber-5.d.ts +2 -0
- package/esm/listeners/legacy/cucumber-5.d.ts.map +1 -0
- package/esm/listeners/legacy/cucumber-5.js +2 -0
- package/esm/listeners/legacy/cucumber-5.js.map +1 -0
- package/esm/listeners/legacy/cucumber-6.d.ts +2 -0
- package/esm/listeners/legacy/cucumber-6.d.ts.map +1 -0
- package/esm/listeners/legacy/cucumber-6.js +2 -0
- package/esm/listeners/legacy/cucumber-6.js.map +1 -0
- package/esm/listeners/legacy/gherkin/GherkinParserAdapter.d.ts +31 -0
- package/esm/listeners/legacy/gherkin/GherkinParserAdapter.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/GherkinParserAdapter.js +164 -0
- package/esm/listeners/legacy/gherkin/GherkinParserAdapter.js.map +1 -0
- package/esm/listeners/legacy/gherkin/constructables.d.ts +2 -0
- package/esm/listeners/legacy/gherkin/constructables.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/constructables.js +2 -0
- package/esm/listeners/legacy/gherkin/constructables.js.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/Cache.d.ts +17 -0
- package/esm/listeners/legacy/gherkin/feature-files/Cache.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/Cache.js +32 -0
- package/esm/listeners/legacy/gherkin/feature-files/Cache.js.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileLoader.d.ts +16 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileLoader.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileLoader.js +26 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileLoader.js.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileMap.d.ts +19 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileMap.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileMap.js +44 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileMap.js.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileMapper.d.ts +14 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileMapper.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileMapper.js +97 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileMapper.js.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileParser.d.ts +13 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileParser.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileParser.js +27 -0
- package/esm/listeners/legacy/gherkin/feature-files/FeatureFileParser.js.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/ItemNotFoundError.d.ts +8 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/ItemNotFoundError.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/ItemNotFoundError.js +10 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/ItemNotFoundError.js.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToParseFeatureFileError.d.ts +8 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToParseFeatureFileError.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToParseFeatureFileError.js +10 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToParseFeatureFileError.js.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToReadFeatureFileError.d.ts +8 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToReadFeatureFileError.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToReadFeatureFileError.js +10 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToReadFeatureFileError.js.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToRetrieveFeatureFileMap.d.ts +8 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToRetrieveFeatureFileMap.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToRetrieveFeatureFileMap.js +10 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/UnableToRetrieveFeatureFileMap.js.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/index.d.ts +5 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/index.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/index.js +5 -0
- package/esm/listeners/legacy/gherkin/feature-files/errors/index.js.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/index.d.ts +6 -0
- package/esm/listeners/legacy/gherkin/feature-files/index.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/feature-files/index.js +6 -0
- package/esm/listeners/legacy/gherkin/feature-files/index.js.map +1 -0
- package/esm/listeners/legacy/gherkin/index.d.ts +4 -0
- package/esm/listeners/legacy/gherkin/index.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/index.js +4 -0
- package/esm/listeners/legacy/gherkin/index.js.map +1 -0
- package/esm/listeners/legacy/gherkin/model/Background.d.ts +13 -0
- package/esm/listeners/legacy/gherkin/model/Background.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/model/Background.js +14 -0
- package/esm/listeners/legacy/gherkin/model/Background.js.map +1 -0
- package/esm/listeners/legacy/gherkin/model/Feature.d.ts +13 -0
- package/esm/listeners/legacy/gherkin/model/Feature.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/model/Feature.js +14 -0
- package/esm/listeners/legacy/gherkin/model/Feature.js.map +1 -0
- package/esm/listeners/legacy/gherkin/model/FeatureFileNode.d.ts +12 -0
- package/esm/listeners/legacy/gherkin/model/FeatureFileNode.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/model/FeatureFileNode.js +14 -0
- package/esm/listeners/legacy/gherkin/model/FeatureFileNode.js.map +1 -0
- package/esm/listeners/legacy/gherkin/model/Hook.d.ts +7 -0
- package/esm/listeners/legacy/gherkin/model/Hook.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/model/Hook.js +7 -0
- package/esm/listeners/legacy/gherkin/model/Hook.js.map +1 -0
- package/esm/listeners/legacy/gherkin/model/Scenario.d.ts +16 -0
- package/esm/listeners/legacy/gherkin/model/Scenario.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/model/Scenario.js +18 -0
- package/esm/listeners/legacy/gherkin/model/Scenario.js.map +1 -0
- package/esm/listeners/legacy/gherkin/model/ScenarioOutline.d.ts +18 -0
- package/esm/listeners/legacy/gherkin/model/ScenarioOutline.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/model/ScenarioOutline.js +16 -0
- package/esm/listeners/legacy/gherkin/model/ScenarioOutline.js.map +1 -0
- package/esm/listeners/legacy/gherkin/model/Step.d.ts +7 -0
- package/esm/listeners/legacy/gherkin/model/Step.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/model/Step.js +7 -0
- package/esm/listeners/legacy/gherkin/model/Step.js.map +1 -0
- package/esm/listeners/legacy/gherkin/model/index.d.ts +8 -0
- package/esm/listeners/legacy/gherkin/model/index.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/model/index.js +8 -0
- package/esm/listeners/legacy/gherkin/model/index.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/ASTNode.d.ts +9 -0
- package/esm/listeners/legacy/gherkin/nodes/ASTNode.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/ASTNode.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/ASTNode.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Background.d.ts +8 -0
- package/esm/listeners/legacy/gherkin/nodes/Background.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Background.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/Background.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Comment.d.ts +9 -0
- package/esm/listeners/legacy/gherkin/nodes/Comment.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Comment.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/Comment.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/DataTable.d.ts +10 -0
- package/esm/listeners/legacy/gherkin/nodes/DataTable.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/DataTable.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/DataTable.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/DocString.d.ts +9 -0
- package/esm/listeners/legacy/gherkin/nodes/DocString.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/DocString.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/DocString.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Examples.d.ts +16 -0
- package/esm/listeners/legacy/gherkin/nodes/Examples.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Examples.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/Examples.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Feature.d.ts +16 -0
- package/esm/listeners/legacy/gherkin/nodes/Feature.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Feature.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/Feature.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/GherkinDocument.d.ts +11 -0
- package/esm/listeners/legacy/gherkin/nodes/GherkinDocument.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/GherkinDocument.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/GherkinDocument.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Location.d.ts +8 -0
- package/esm/listeners/legacy/gherkin/nodes/Location.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Location.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/Location.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Scenario.d.ts +10 -0
- package/esm/listeners/legacy/gherkin/nodes/Scenario.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Scenario.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/Scenario.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/ScenarioDefinition.d.ts +15 -0
- package/esm/listeners/legacy/gherkin/nodes/ScenarioDefinition.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/ScenarioDefinition.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/ScenarioDefinition.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/ScenarioOutline.d.ts +12 -0
- package/esm/listeners/legacy/gherkin/nodes/ScenarioOutline.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/ScenarioOutline.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/ScenarioOutline.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Step.d.ts +12 -0
- package/esm/listeners/legacy/gherkin/nodes/Step.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Step.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/Step.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/StepArgument.d.ts +8 -0
- package/esm/listeners/legacy/gherkin/nodes/StepArgument.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/StepArgument.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/StepArgument.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/TableCell.d.ts +8 -0
- package/esm/listeners/legacy/gherkin/nodes/TableCell.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/TableCell.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/TableCell.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/TableRow.d.ts +10 -0
- package/esm/listeners/legacy/gherkin/nodes/TableRow.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/TableRow.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/TableRow.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Tag.d.ts +9 -0
- package/esm/listeners/legacy/gherkin/nodes/Tag.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/Tag.js +2 -0
- package/esm/listeners/legacy/gherkin/nodes/Tag.js.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/index.d.ts +17 -0
- package/esm/listeners/legacy/gherkin/nodes/index.d.ts.map +1 -0
- package/esm/listeners/legacy/gherkin/nodes/index.js +17 -0
- package/esm/listeners/legacy/gherkin/nodes/index.js.map +1 -0
- package/esm/listeners/legacy/index.d.ts +10 -0
- package/esm/listeners/legacy/index.d.ts.map +1 -0
- package/esm/listeners/legacy/index.js +48 -0
- package/esm/listeners/legacy/index.js.map +1 -0
- package/esm/listeners/legacy/notifier/Notifier.d.ts +27 -0
- package/esm/listeners/legacy/notifier/Notifier.d.ts.map +1 -0
- package/esm/listeners/legacy/notifier/Notifier.js +82 -0
- package/esm/listeners/legacy/notifier/Notifier.js.map +1 -0
- package/esm/listeners/legacy/notifier/ResultMapper.d.ts +15 -0
- package/esm/listeners/legacy/notifier/ResultMapper.d.ts.map +1 -0
- package/esm/listeners/legacy/notifier/ResultMapper.js +80 -0
- package/esm/listeners/legacy/notifier/ResultMapper.js.map +1 -0
- package/esm/listeners/legacy/notifier/index.d.ts +3 -0
- package/esm/listeners/legacy/notifier/index.d.ts.map +1 -0
- package/esm/listeners/legacy/notifier/index.js +3 -0
- package/esm/listeners/legacy/notifier/index.js.map +1 -0
- package/esm/listeners/messages/CucumberMessagesListener.d.ts +18 -0
- package/esm/listeners/messages/CucumberMessagesListener.d.ts.map +1 -0
- package/esm/listeners/messages/CucumberMessagesListener.js +65 -0
- package/esm/listeners/messages/CucumberMessagesListener.js.map +1 -0
- package/esm/listeners/messages/index.d.ts +7 -0
- package/esm/listeners/messages/index.d.ts.map +1 -0
- package/esm/listeners/messages/index.js +8 -0
- package/esm/listeners/messages/index.js.map +1 -0
- package/esm/listeners/messages/parser/CucumberMessagesParser.d.ts +45 -0
- package/esm/listeners/messages/parser/CucumberMessagesParser.d.ts.map +1 -0
- package/esm/listeners/messages/parser/CucumberMessagesParser.js +211 -0
- package/esm/listeners/messages/parser/CucumberMessagesParser.js.map +1 -0
- package/esm/listeners/messages/parser/TestStepFormatter.d.ts +14 -0
- package/esm/listeners/messages/parser/TestStepFormatter.d.ts.map +1 -0
- package/esm/listeners/messages/parser/TestStepFormatter.js +61 -0
- package/esm/listeners/messages/parser/TestStepFormatter.js.map +1 -0
- package/esm/listeners/messages/parser/types/ExtractedScenario.d.ts +9 -0
- package/esm/listeners/messages/parser/types/ExtractedScenario.d.ts.map +1 -0
- package/esm/listeners/messages/parser/types/ExtractedScenario.js +2 -0
- package/esm/listeners/messages/parser/types/ExtractedScenario.js.map +1 -0
- package/esm/listeners/messages/parser/types/ExtractedScenarioOutline.d.ts +7 -0
- package/esm/listeners/messages/parser/types/ExtractedScenarioOutline.d.ts.map +1 -0
- package/esm/listeners/messages/parser/types/ExtractedScenarioOutline.js +2 -0
- package/esm/listeners/messages/parser/types/ExtractedScenarioOutline.js.map +1 -0
- package/esm/listeners/messages/parser/types/index.d.ts +3 -0
- package/esm/listeners/messages/parser/types/index.d.ts.map +1 -0
- package/esm/listeners/messages/parser/types/index.js +3 -0
- package/esm/listeners/messages/parser/types/index.js.map +1 -0
- package/esm/listeners/messages/types/cucumber.d.ts +63 -0
- package/esm/listeners/messages/types/cucumber.d.ts.map +1 -0
- package/esm/listeners/messages/types/cucumber.js +7 -0
- package/esm/listeners/messages/types/cucumber.js.map +1 -0
- package/lib/adapter/CucumberCLIAdapter.d.ts +5 -5
- package/lib/adapter/CucumberCLIAdapter.d.ts.map +1 -1
- package/lib/adapter/CucumberCLIAdapter.js +4 -4
- package/lib/adapter/CucumberCLIAdapter.js.map +1 -1
- package/lib/adapter/CucumberOptions.d.ts +3 -3
- package/lib/adapter/CucumberOptions.d.ts.map +1 -1
- package/lib/adapter/CucumberOptions.js +1 -1
- package/lib/adapter/CucumberOptions.js.map +1 -1
- package/lib/adapter/index.d.ts +4 -4
- package/lib/adapter/index.d.ts.map +1 -1
- package/lib/adapter/index.js +4 -4
- package/lib/adapter/index.js.map +1 -1
- package/lib/adapter/output/SerenityFormatterOutput.d.ts +1 -1
- package/lib/adapter/output/SerenityFormatterOutput.d.ts.map +1 -1
- package/lib/adapter/output/StandardOutput.d.ts +2 -2
- package/lib/adapter/output/StandardOutput.d.ts.map +1 -1
- package/lib/adapter/output/StandardOutput.js +2 -2
- package/lib/adapter/output/StandardOutput.js.map +1 -1
- package/lib/adapter/output/StandardOutputDescriptor.d.ts +1 -1
- package/lib/adapter/output/StandardOutputDescriptor.d.ts.map +1 -1
- package/lib/adapter/output/TempFileOutput.d.ts +3 -3
- package/lib/adapter/output/TempFileOutput.d.ts.map +1 -1
- package/lib/adapter/output/TempFileOutput.js +2 -2
- package/lib/adapter/output/TempFileOutput.js.map +1 -1
- package/lib/adapter/output/TempFileOutputDescriptor.d.ts +2 -2
- package/lib/adapter/output/TempFileOutputDescriptor.d.ts.map +1 -1
- package/lib/adapter/output/TempFileOutputDescriptor.js +1 -1
- package/lib/adapter/output/TempFileOutputDescriptor.js.map +1 -1
- package/lib/adapter/output/index.d.ts +4 -4
- package/lib/adapter/output/index.d.ts.map +1 -1
- package/lib/adapter/output/index.js +4 -4
- package/lib/adapter/output/index.js.map +1 -1
- package/lib/errors/AmbiguousStepDefinitionError.d.ts +1 -1
- package/lib/errors/AmbiguousStepDefinitionError.d.ts.map +1 -1
- package/lib/errors/AmbiguousStepDefinitionError.js +1 -1
- package/lib/errors/AmbiguousStepDefinitionError.js.map +1 -1
- package/lib/errors/index.d.ts +1 -1
- package/lib/errors/index.d.ts.map +1 -1
- package/lib/errors/index.js +1 -1
- package/lib/errors/index.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -4
- package/lib/index.js.map +1 -1
- package/lib/listeners/legacy/CucumberEventProtocolAdapter.d.ts +3 -3
- package/lib/listeners/legacy/CucumberEventProtocolAdapter.d.ts.map +1 -1
- package/lib/listeners/legacy/CucumberEventProtocolAdapter.js +21 -21
- package/lib/listeners/legacy/CucumberEventProtocolAdapter.js.map +1 -1
- package/lib/listeners/legacy/Dependencies.d.ts +3 -3
- package/lib/listeners/legacy/Dependencies.d.ts.map +1 -1
- package/lib/listeners/legacy/cucumber-0.d.ts +2 -3
- package/lib/listeners/legacy/cucumber-0.d.ts.map +1 -1
- package/lib/listeners/legacy/cucumber-0.js +50 -48
- package/lib/listeners/legacy/cucumber-0.js.map +1 -1
- package/lib/listeners/legacy/cucumber-1.d.ts +1 -2
- package/lib/listeners/legacy/cucumber-1.d.ts.map +1 -1
- package/lib/listeners/legacy/cucumber-1.js +7 -1
- package/lib/listeners/legacy/cucumber-1.js.map +1 -1
- package/lib/listeners/legacy/cucumber-2.d.ts +2 -3
- package/lib/listeners/legacy/cucumber-2.d.ts.map +1 -1
- package/lib/listeners/legacy/cucumber-2.js +9 -4
- package/lib/listeners/legacy/cucumber-2.js.map +1 -1
- package/lib/listeners/legacy/cucumber-3.d.ts +4 -5
- package/lib/listeners/legacy/cucumber-3.d.ts.map +1 -1
- package/lib/listeners/legacy/cucumber-3.js +8 -5
- package/lib/listeners/legacy/cucumber-3.js.map +1 -1
- package/lib/listeners/legacy/cucumber-4.d.ts +4 -5
- package/lib/listeners/legacy/cucumber-4.d.ts.map +1 -1
- package/lib/listeners/legacy/cucumber-4.js +8 -5
- package/lib/listeners/legacy/cucumber-4.js.map +1 -1
- package/lib/listeners/legacy/cucumber-5.d.ts +1 -2
- package/lib/listeners/legacy/cucumber-5.d.ts.map +1 -1
- package/lib/listeners/legacy/cucumber-5.js +7 -1
- package/lib/listeners/legacy/cucumber-5.js.map +1 -1
- package/lib/listeners/legacy/cucumber-6.d.ts +1 -2
- package/lib/listeners/legacy/cucumber-6.d.ts.map +1 -1
- package/lib/listeners/legacy/cucumber-6.js +7 -1
- package/lib/listeners/legacy/cucumber-6.js.map +1 -1
- package/lib/listeners/legacy/gherkin/GherkinParserAdapter.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/GherkinParserAdapter.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/Cache.js +2 -2
- package/lib/listeners/legacy/gherkin/feature-files/Cache.js.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileLoader.d.ts +5 -5
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileLoader.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileLoader.js +2 -2
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileLoader.js.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileMap.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileMap.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileMap.js +4 -4
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileMap.js.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileMapper.d.ts +3 -3
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileMapper.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileMapper.js +12 -12
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileMapper.js.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileParser.d.ts +2 -2
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileParser.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileParser.js +3 -3
- package/lib/listeners/legacy/gherkin/feature-files/FeatureFileParser.js.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/ItemNotFoundError.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/ItemNotFoundError.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/ItemNotFoundError.js +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/ItemNotFoundError.js.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToParseFeatureFileError.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToParseFeatureFileError.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToParseFeatureFileError.js +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToParseFeatureFileError.js.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToReadFeatureFileError.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToReadFeatureFileError.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToReadFeatureFileError.js +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToReadFeatureFileError.js.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToRetrieveFeatureFileMap.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToRetrieveFeatureFileMap.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToRetrieveFeatureFileMap.js +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/UnableToRetrieveFeatureFileMap.js.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/index.d.ts +4 -4
- package/lib/listeners/legacy/gherkin/feature-files/errors/index.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/errors/index.js +4 -4
- package/lib/listeners/legacy/gherkin/feature-files/errors/index.js.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/index.d.ts +5 -5
- package/lib/listeners/legacy/gherkin/feature-files/index.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/feature-files/index.js +5 -5
- package/lib/listeners/legacy/gherkin/feature-files/index.js.map +1 -1
- package/lib/listeners/legacy/gherkin/index.d.ts +3 -3
- package/lib/listeners/legacy/gherkin/index.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/index.js +3 -3
- package/lib/listeners/legacy/gherkin/index.js.map +1 -1
- package/lib/listeners/legacy/gherkin/model/Background.d.ts +4 -4
- package/lib/listeners/legacy/gherkin/model/Background.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/model/Background.js +2 -2
- package/lib/listeners/legacy/gherkin/model/Background.js.map +1 -1
- package/lib/listeners/legacy/gherkin/model/Feature.d.ts +4 -4
- package/lib/listeners/legacy/gherkin/model/Feature.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/model/Feature.js +2 -2
- package/lib/listeners/legacy/gherkin/model/Feature.js.map +1 -1
- package/lib/listeners/legacy/gherkin/model/FeatureFileNode.d.ts +2 -2
- package/lib/listeners/legacy/gherkin/model/FeatureFileNode.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/model/Hook.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/model/Hook.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/model/Hook.js +2 -2
- package/lib/listeners/legacy/gherkin/model/Hook.js.map +1 -1
- package/lib/listeners/legacy/gherkin/model/Scenario.d.ts +5 -5
- package/lib/listeners/legacy/gherkin/model/Scenario.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/model/Scenario.js +2 -2
- package/lib/listeners/legacy/gherkin/model/Scenario.js.map +1 -1
- package/lib/listeners/legacy/gherkin/model/ScenarioOutline.d.ts +4 -4
- package/lib/listeners/legacy/gherkin/model/ScenarioOutline.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/model/ScenarioOutline.js +2 -2
- package/lib/listeners/legacy/gherkin/model/ScenarioOutline.js.map +1 -1
- package/lib/listeners/legacy/gherkin/model/Step.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/model/Step.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/model/Step.js +2 -2
- package/lib/listeners/legacy/gherkin/model/Step.js.map +1 -1
- package/lib/listeners/legacy/gherkin/model/index.d.ts +7 -7
- package/lib/listeners/legacy/gherkin/model/index.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/model/index.js +7 -7
- package/lib/listeners/legacy/gherkin/model/index.js.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/ASTNode.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/nodes/ASTNode.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/Background.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/nodes/Background.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/Comment.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/nodes/Comment.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/DataTable.d.ts +2 -2
- package/lib/listeners/legacy/gherkin/nodes/DataTable.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/DocString.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/nodes/DocString.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/Examples.d.ts +3 -3
- package/lib/listeners/legacy/gherkin/nodes/Examples.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/Feature.d.ts +3 -3
- package/lib/listeners/legacy/gherkin/nodes/Feature.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/GherkinDocument.d.ts +2 -2
- package/lib/listeners/legacy/gherkin/nodes/GherkinDocument.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/Scenario.d.ts +2 -2
- package/lib/listeners/legacy/gherkin/nodes/Scenario.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/ScenarioDefinition.d.ts +3 -3
- package/lib/listeners/legacy/gherkin/nodes/ScenarioDefinition.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/ScenarioOutline.d.ts +3 -3
- package/lib/listeners/legacy/gherkin/nodes/ScenarioOutline.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/Step.d.ts +2 -2
- package/lib/listeners/legacy/gherkin/nodes/Step.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/StepArgument.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/nodes/StepArgument.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/TableCell.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/nodes/TableCell.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/TableRow.d.ts +2 -2
- package/lib/listeners/legacy/gherkin/nodes/TableRow.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/Tag.d.ts +1 -1
- package/lib/listeners/legacy/gherkin/nodes/Tag.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/index.d.ts +16 -16
- package/lib/listeners/legacy/gherkin/nodes/index.d.ts.map +1 -1
- package/lib/listeners/legacy/gherkin/nodes/index.js +16 -16
- package/lib/listeners/legacy/gherkin/nodes/index.js.map +1 -1
- package/lib/listeners/legacy/index.d.ts +1 -1
- package/lib/listeners/legacy/index.d.ts.map +1 -1
- package/lib/listeners/legacy/index.js +27 -4
- package/lib/listeners/legacy/index.js.map +1 -1
- package/lib/listeners/legacy/notifier/Notifier.d.ts +3 -3
- package/lib/listeners/legacy/notifier/Notifier.d.ts.map +1 -1
- package/lib/listeners/legacy/notifier/Notifier.js +2 -2
- package/lib/listeners/legacy/notifier/Notifier.js.map +1 -1
- package/lib/listeners/legacy/notifier/ResultMapper.d.ts +1 -1
- package/lib/listeners/legacy/notifier/ResultMapper.d.ts.map +1 -1
- package/lib/listeners/legacy/notifier/ResultMapper.js +3 -3
- package/lib/listeners/legacy/notifier/ResultMapper.js.map +1 -1
- package/lib/listeners/legacy/notifier/index.d.ts +2 -2
- package/lib/listeners/legacy/notifier/index.d.ts.map +1 -1
- package/lib/listeners/legacy/notifier/index.js +2 -2
- package/lib/listeners/legacy/notifier/index.js.map +1 -1
- package/lib/listeners/messages/CucumberMessagesListener.d.ts +4 -5
- package/lib/listeners/messages/CucumberMessagesListener.d.ts.map +1 -1
- package/lib/listeners/messages/CucumberMessagesListener.js +9 -6
- package/lib/listeners/messages/CucumberMessagesListener.js.map +1 -1
- package/lib/listeners/messages/index.d.ts +1 -1
- package/lib/listeners/messages/index.d.ts.map +1 -1
- package/lib/listeners/messages/index.js +5 -2
- package/lib/listeners/messages/index.js.map +1 -1
- package/lib/listeners/messages/parser/CucumberMessagesParser.d.ts +2 -2
- package/lib/listeners/messages/parser/CucumberMessagesParser.d.ts.map +1 -1
- package/lib/listeners/messages/parser/CucumberMessagesParser.js +6 -6
- package/lib/listeners/messages/parser/CucumberMessagesParser.js.map +1 -1
- package/lib/listeners/messages/parser/types/ExtractedScenario.d.ts +1 -1
- package/lib/listeners/messages/parser/types/ExtractedScenario.d.ts.map +1 -1
- package/lib/listeners/messages/parser/types/ExtractedScenarioOutline.d.ts +1 -1
- package/lib/listeners/messages/parser/types/ExtractedScenarioOutline.d.ts.map +1 -1
- package/lib/listeners/messages/parser/types/index.d.ts +2 -2
- package/lib/listeners/messages/parser/types/index.d.ts.map +1 -1
- package/lib/listeners/messages/parser/types/index.js +2 -2
- package/lib/listeners/messages/parser/types/index.js.map +1 -1
- package/lib/package.json +1 -0
- package/package.json +45 -10
- package/src/adapter/CucumberCLIAdapter.ts +9 -9
- package/src/adapter/CucumberOptions.ts +3 -3
- package/src/adapter/index.ts +4 -4
- package/src/adapter/output/SerenityFormatterOutput.ts +1 -1
- package/src/adapter/output/StandardOutput.ts +3 -3
- package/src/adapter/output/StandardOutputDescriptor.ts +1 -1
- package/src/adapter/output/TempFileOutput.ts +4 -4
- package/src/adapter/output/TempFileOutputDescriptor.ts +2 -2
- package/src/adapter/output/index.ts +4 -4
- package/src/errors/AmbiguousStepDefinitionError.ts +1 -1
- package/src/errors/index.ts +1 -1
- package/src/index.ts +7 -4
- package/src/listeners/legacy/CucumberEventProtocolAdapter.ts +8 -8
- package/src/listeners/legacy/Dependencies.ts +3 -3
- package/src/listeners/legacy/cucumber-0.ts +8 -8
- package/src/listeners/legacy/cucumber-1.ts +1 -1
- package/src/listeners/legacy/cucumber-2.ts +5 -6
- package/src/listeners/legacy/cucumber-3.ts +5 -5
- package/src/listeners/legacy/cucumber-4.ts +5 -5
- package/src/listeners/legacy/cucumber-5.ts +1 -1
- package/src/listeners/legacy/cucumber-6.ts +1 -1
- package/src/listeners/legacy/gherkin/GherkinParserAdapter.ts +1 -1
- package/src/listeners/legacy/gherkin/feature-files/Cache.ts +1 -1
- package/src/listeners/legacy/gherkin/feature-files/FeatureFileLoader.ts +5 -5
- package/src/listeners/legacy/gherkin/feature-files/FeatureFileMap.ts +2 -2
- package/src/listeners/legacy/gherkin/feature-files/FeatureFileMapper.ts +8 -8
- package/src/listeners/legacy/gherkin/feature-files/FeatureFileParser.ts +3 -3
- package/src/listeners/legacy/gherkin/feature-files/errors/ItemNotFoundError.ts +1 -1
- package/src/listeners/legacy/gherkin/feature-files/errors/UnableToParseFeatureFileError.ts +1 -1
- package/src/listeners/legacy/gherkin/feature-files/errors/UnableToReadFeatureFileError.ts +1 -1
- package/src/listeners/legacy/gherkin/feature-files/errors/UnableToRetrieveFeatureFileMap.ts +1 -1
- package/src/listeners/legacy/gherkin/feature-files/errors/index.ts +4 -4
- package/src/listeners/legacy/gherkin/feature-files/index.ts +5 -5
- package/src/listeners/legacy/gherkin/index.ts +3 -3
- package/src/listeners/legacy/gherkin/model/Background.ts +4 -4
- package/src/listeners/legacy/gherkin/model/Feature.ts +4 -4
- package/src/listeners/legacy/gherkin/model/FeatureFileNode.ts +2 -2
- package/src/listeners/legacy/gherkin/model/Hook.ts +1 -1
- package/src/listeners/legacy/gherkin/model/Scenario.ts +5 -5
- package/src/listeners/legacy/gherkin/model/ScenarioOutline.ts +4 -4
- package/src/listeners/legacy/gherkin/model/Step.ts +1 -1
- package/src/listeners/legacy/gherkin/model/index.ts +7 -7
- package/src/listeners/legacy/gherkin/nodes/ASTNode.ts +1 -1
- package/src/listeners/legacy/gherkin/nodes/Background.ts +1 -1
- package/src/listeners/legacy/gherkin/nodes/Comment.ts +1 -1
- package/src/listeners/legacy/gherkin/nodes/DataTable.ts +2 -2
- package/src/listeners/legacy/gherkin/nodes/DocString.ts +1 -1
- package/src/listeners/legacy/gherkin/nodes/Examples.ts +3 -3
- package/src/listeners/legacy/gherkin/nodes/Feature.ts +3 -3
- package/src/listeners/legacy/gherkin/nodes/GherkinDocument.ts +2 -2
- package/src/listeners/legacy/gherkin/nodes/Scenario.ts +2 -2
- package/src/listeners/legacy/gherkin/nodes/ScenarioDefinition.ts +3 -3
- package/src/listeners/legacy/gherkin/nodes/ScenarioOutline.ts +3 -3
- package/src/listeners/legacy/gherkin/nodes/Step.ts +2 -2
- package/src/listeners/legacy/gherkin/nodes/StepArgument.ts +1 -1
- package/src/listeners/legacy/gherkin/nodes/TableCell.ts +1 -1
- package/src/listeners/legacy/gherkin/nodes/TableRow.ts +2 -2
- package/src/listeners/legacy/gherkin/nodes/Tag.ts +1 -1
- package/src/listeners/legacy/gherkin/nodes/index.ts +16 -16
- package/src/listeners/legacy/index.ts +27 -5
- package/src/listeners/legacy/notifier/Notifier.ts +6 -6
- package/src/listeners/legacy/notifier/ResultMapper.ts +3 -3
- package/src/listeners/legacy/notifier/index.ts +2 -2
- package/src/listeners/messages/CucumberMessagesListener.ts +8 -7
- package/src/listeners/messages/index.ts +3 -2
- package/src/listeners/messages/parser/CucumberMessagesParser.ts +9 -9
- package/src/listeners/messages/parser/types/ExtractedScenario.ts +1 -1
- package/src/listeners/messages/parser/types/ExtractedScenarioOutline.ts +1 -1
- package/src/listeners/messages/parser/types/index.ts +2 -2
- package/tsconfig-cjs.build.json +13 -0
- package/tsconfig-esm.build.json +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.42.0](https://github.com/serenity-js/serenity-js/compare/v3.41.2...v3.42.0) (2026-03-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **core:** add dual ESM/CJS build support for Wave 2 packages ([0e2631c](https://github.com/serenity-js/serenity-js/commit/0e2631ca7cdbe68da7feec343eaf4f7fe9bb64d6))
|
|
12
|
+
* **core:** add ESM/CJS dual build support for web packages ([94c5a64](https://github.com/serenity-js/serenity-js/commit/94c5a6423dc369477bbabbacee5a54f8fca20209))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [3.41.2](https://github.com/serenity-js/serenity-js/compare/v3.41.1...v3.41.2) (2026-03-05)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **deps:** update dependency @cucumber/gherkin to v39 ([b94373f](https://github.com/serenity-js/serenity-js/commit/b94373fe8c3a824b2a7ebfeed961ce2dca16ed99))
|
|
24
|
+
* **deps:** update dependency @cucumber/messages to v32.2.0 ([d4a1095](https://github.com/serenity-js/serenity-js/commit/d4a109564a92130d1f7c64cf19fe56bedb6b3127))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [3.41.1](https://github.com/serenity-js/serenity-js/compare/v3.41.0...v3.41.1) (2026-02-27)
|
|
7
31
|
|
|
8
32
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { TestRunnerAdapter } from '@serenity-js/core/adapter';
|
|
2
|
+
import type { FileSystem, ModuleLoader } from '@serenity-js/core/io';
|
|
3
|
+
import type { Outcome } from '@serenity-js/core/model';
|
|
4
|
+
import type { CucumberConfig } from './CucumberConfig.js';
|
|
5
|
+
import type { SerenityFormatterOutput } from './output/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* Allows for programmatic execution of Cucumber test scenarios.
|
|
8
|
+
*
|
|
9
|
+
* ## Learn more
|
|
10
|
+
* - [`TestRunnerAdapter`](https://serenity-js.org/api/core-adapter/interface/TestRunnerAdapter/)
|
|
11
|
+
*
|
|
12
|
+
* @group Integration
|
|
13
|
+
*/
|
|
14
|
+
export declare class CucumberCLIAdapter implements TestRunnerAdapter {
|
|
15
|
+
private readonly loader;
|
|
16
|
+
private readonly output;
|
|
17
|
+
private pathsToScenarios;
|
|
18
|
+
private readonly options;
|
|
19
|
+
constructor(config: CucumberConfig, loader: ModuleLoader, fileSystem: FileSystem, output: SerenityFormatterOutput);
|
|
20
|
+
/**
|
|
21
|
+
* Scenario success threshold for this test runner, calculated based on [`CucumberConfig`](https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/)
|
|
22
|
+
*/
|
|
23
|
+
successThreshold(): Outcome | {
|
|
24
|
+
Code: number;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Loads feature files.
|
|
28
|
+
*
|
|
29
|
+
* @param pathsToScenarios
|
|
30
|
+
* Absolute or relative paths to feature files
|
|
31
|
+
*/
|
|
32
|
+
load(pathsToScenarios: string[]): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the number of loaded scenarios
|
|
35
|
+
*
|
|
36
|
+
* @throws [`LogicError`](https://serenity-js.org/api/core/class/LogicError/)
|
|
37
|
+
* If called before `load`
|
|
38
|
+
*/
|
|
39
|
+
scenarioCount(): number;
|
|
40
|
+
/**
|
|
41
|
+
* Instructs Cucumber to execute feature files located at `pathsToScenarios`
|
|
42
|
+
*/
|
|
43
|
+
run(): Promise<void>;
|
|
44
|
+
private runScenarios;
|
|
45
|
+
private runWithCucumber10;
|
|
46
|
+
private runWithCucumber8JavaScriptApi;
|
|
47
|
+
private runWithCucumberApi;
|
|
48
|
+
private runWithCucumber8;
|
|
49
|
+
private runWithCucumber7;
|
|
50
|
+
private runWithCucumber3to6;
|
|
51
|
+
private runWithCucumber2;
|
|
52
|
+
private runWithCucumber0to1;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=CucumberCLIAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CucumberCLIAdapter.d.ts","sourceRoot":"","sources":["../../src/adapter/CucumberCLIAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAoB,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAEnF;;;;;;;GAOG;AACH,qBAAa,kBAAmB,YAAW,iBAAiB;IAQpD,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAR3B,OAAO,CAAC,gBAAgB,CAAgB;IAExC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkB;gBAGtC,MAAM,EAAE,cAAc,EACL,MAAM,EAAE,YAAY,EACrC,UAAU,EAAE,UAAU,EACL,MAAM,EAAE,uBAAuB;IAKpD;;OAEG;IACH,gBAAgB,IAAI,OAAO,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;IAM9C;;;;;OAKG;IACG,IAAI,CAAC,gBAAgB,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAYrD;;;;;OAKG;IACH,aAAa,IAAI,MAAM;IAYvB;;OAEG;IACG,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAU1B,OAAO,CAAC,YAAY;YAkCN,iBAAiB;YAcjB,6BAA6B;YAK7B,kBAAkB;IAmChC,OAAO,CAAC,gBAAgB;IAexB,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,mBAAmB;CAO9B"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { FileFinder, Path, Version } from '@serenity-js/core/io';
|
|
3
|
+
import { ExecutionIgnored, ImplementationPending } from '@serenity-js/core/model';
|
|
4
|
+
import { CucumberOptions } from './CucumberOptions.js';
|
|
5
|
+
/**
|
|
6
|
+
* Allows for programmatic execution of Cucumber test scenarios.
|
|
7
|
+
*
|
|
8
|
+
* ## Learn more
|
|
9
|
+
* - [`TestRunnerAdapter`](https://serenity-js.org/api/core-adapter/interface/TestRunnerAdapter/)
|
|
10
|
+
*
|
|
11
|
+
* @group Integration
|
|
12
|
+
*/
|
|
13
|
+
export class CucumberCLIAdapter {
|
|
14
|
+
loader;
|
|
15
|
+
output;
|
|
16
|
+
pathsToScenarios = [];
|
|
17
|
+
options;
|
|
18
|
+
constructor(config, loader, fileSystem, output) {
|
|
19
|
+
this.loader = loader;
|
|
20
|
+
this.output = output;
|
|
21
|
+
this.options = new CucumberOptions(new FileFinder(Path.from(this.loader.cwd)), fileSystem, config);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Scenario success threshold for this test runner, calculated based on [`CucumberConfig`](https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/)
|
|
25
|
+
*/
|
|
26
|
+
successThreshold() {
|
|
27
|
+
return this.options.isStrict()
|
|
28
|
+
? ExecutionIgnored
|
|
29
|
+
: ImplementationPending;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Loads feature files.
|
|
33
|
+
*
|
|
34
|
+
* @param pathsToScenarios
|
|
35
|
+
* Absolute or relative paths to feature files
|
|
36
|
+
*/
|
|
37
|
+
async load(pathsToScenarios) {
|
|
38
|
+
this.pathsToScenarios = pathsToScenarios.map(maybeAbsolutePathToScenario => {
|
|
39
|
+
// Ensure paths provided to Cucumber are relative
|
|
40
|
+
// see https://github.com/cucumber/cucumber-js/issues/1900
|
|
41
|
+
return path.isAbsolute(maybeAbsolutePathToScenario)
|
|
42
|
+
? path.relative(this.loader.cwd, maybeAbsolutePathToScenario)
|
|
43
|
+
: maybeAbsolutePathToScenario;
|
|
44
|
+
});
|
|
45
|
+
// todo: implement loading, so parsing feature files to determine how many executable we have
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns the number of loaded scenarios
|
|
49
|
+
*
|
|
50
|
+
* @throws [`LogicError`](https://serenity-js.org/api/core/class/LogicError/)
|
|
51
|
+
* If called before `load`
|
|
52
|
+
*/
|
|
53
|
+
scenarioCount() {
|
|
54
|
+
// todo: we should count the actual executable scenarios to avoid launching a WebdriverIO worked
|
|
55
|
+
// for a feature file without any scenarios.
|
|
56
|
+
return this.pathsToScenarios.length;
|
|
57
|
+
// if (this.totalScenarios === undefined) {
|
|
58
|
+
// throw new LogicError('Make sure to call `load` before calling `scenarioCount`');
|
|
59
|
+
// }
|
|
60
|
+
//
|
|
61
|
+
// return this.totalScenarios;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Instructs Cucumber to execute feature files located at `pathsToScenarios`
|
|
65
|
+
*/
|
|
66
|
+
async run() {
|
|
67
|
+
const version = this.loader.hasAvailable('@cucumber/cucumber')
|
|
68
|
+
? this.loader.versionOf('@cucumber/cucumber')
|
|
69
|
+
: this.loader.versionOf('cucumber');
|
|
70
|
+
const serenityListener = this.loader.resolve('@serenity-js/cucumber');
|
|
71
|
+
return this.runScenarios(version, serenityListener, this.pathsToScenarios);
|
|
72
|
+
}
|
|
73
|
+
runScenarios(version, serenityListener, pathsToScenarios) {
|
|
74
|
+
if (version.isAtLeast(new Version('10.0.0'))) {
|
|
75
|
+
return this.runWithCucumber10(serenityListener, pathsToScenarios);
|
|
76
|
+
}
|
|
77
|
+
if (version.isAtLeast(new Version('9.0.0'))) {
|
|
78
|
+
return this.runWithCucumber8JavaScriptApi(serenityListener, pathsToScenarios);
|
|
79
|
+
}
|
|
80
|
+
if (version.isAtLeast(new Version('8.7.0'))) {
|
|
81
|
+
return this.runWithCucumber8JavaScriptApi(serenityListener, pathsToScenarios);
|
|
82
|
+
}
|
|
83
|
+
const argv = this.options.asArgumentsForCucumber(version);
|
|
84
|
+
if (version.isAtLeast(new Version('8.0.0'))) {
|
|
85
|
+
return this.runWithCucumber8(argv, serenityListener, pathsToScenarios);
|
|
86
|
+
}
|
|
87
|
+
if (version.isAtLeast(new Version('7.0.0'))) {
|
|
88
|
+
return this.runWithCucumber7(argv, serenityListener, pathsToScenarios);
|
|
89
|
+
}
|
|
90
|
+
if (version.isAtLeast(new Version('3.0.0'))) {
|
|
91
|
+
return this.runWithCucumber3to6(argv, serenityListener, pathsToScenarios);
|
|
92
|
+
}
|
|
93
|
+
if (version.isAtLeast(new Version('2.0.0'))) {
|
|
94
|
+
return this.runWithCucumber2(argv, serenityListener, pathsToScenarios);
|
|
95
|
+
}
|
|
96
|
+
return this.runWithCucumber0to1(argv, serenityListener, pathsToScenarios);
|
|
97
|
+
}
|
|
98
|
+
async runWithCucumber10(pathToSerenityListener, pathsToScenarios) {
|
|
99
|
+
const output = this.output.get();
|
|
100
|
+
const serenityListenerUrl = Path.from(pathToSerenityListener).toFileURL().href;
|
|
101
|
+
const outputUrl = output.value() ?? undefined;
|
|
102
|
+
// https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md#ambiguous-colons-in-formats
|
|
103
|
+
// https://github.com/cucumber/cucumber-js/issues/2326#issuecomment-1711701382
|
|
104
|
+
return await this.runWithCucumberApi([
|
|
105
|
+
serenityListenerUrl,
|
|
106
|
+
outputUrl,
|
|
107
|
+
], pathsToScenarios, output);
|
|
108
|
+
}
|
|
109
|
+
// https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md
|
|
110
|
+
async runWithCucumber8JavaScriptApi(pathToSerenityListener, pathsToScenarios) {
|
|
111
|
+
const output = this.output.get();
|
|
112
|
+
return await this.runWithCucumberApi(`${pathToSerenityListener}:${output.value()}`, pathsToScenarios, output);
|
|
113
|
+
}
|
|
114
|
+
async runWithCucumberApi(serenityFormatter, pathsToScenarios, output) {
|
|
115
|
+
const configuration = this.options.asCucumberApiConfiguration();
|
|
116
|
+
const { loadConfiguration, loadSupport, runCucumber } = this.loader.require('@cucumber/cucumber/api');
|
|
117
|
+
// https://github.com/cucumber/cucumber-js/blob/main/src/api/environment.ts
|
|
118
|
+
const environment = {
|
|
119
|
+
cwd: this.loader.cwd,
|
|
120
|
+
stdout: process.stdout,
|
|
121
|
+
stderr: process.stderr,
|
|
122
|
+
env: process.env,
|
|
123
|
+
debug: false,
|
|
124
|
+
};
|
|
125
|
+
configuration.format.push(serenityFormatter);
|
|
126
|
+
configuration.paths = pathsToScenarios;
|
|
127
|
+
// https://github.com/cucumber/cucumber-js/blob/main/src/configuration/types.ts
|
|
128
|
+
const { runConfiguration } = await loadConfiguration({ provided: configuration }, environment);
|
|
129
|
+
try {
|
|
130
|
+
// load the support code upfront
|
|
131
|
+
const support = await loadSupport(runConfiguration, environment);
|
|
132
|
+
// run cucumber, using the support code we loaded already
|
|
133
|
+
const { success } = await runCucumber({ ...runConfiguration, support }, environment);
|
|
134
|
+
await output.cleanUp();
|
|
135
|
+
return success;
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
await output.cleanUp();
|
|
139
|
+
throw error;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
runWithCucumber8(argv, pathToSerenityListener, pathsToScenarios) {
|
|
143
|
+
const cucumber = this.loader.require('@cucumber/cucumber');
|
|
144
|
+
const output = this.output.get();
|
|
145
|
+
return new cucumber.Cli({
|
|
146
|
+
argv: argv.concat('--format', `${pathToSerenityListener}:${output.value()}`, ...pathsToScenarios),
|
|
147
|
+
cwd: this.loader.cwd,
|
|
148
|
+
stdout: process.stdout,
|
|
149
|
+
stderr: process.stderr,
|
|
150
|
+
env: process.env,
|
|
151
|
+
})
|
|
152
|
+
.run()
|
|
153
|
+
.then(cleanUpAndPassThrough(output), cleanUpAndReThrow(output));
|
|
154
|
+
}
|
|
155
|
+
runWithCucumber7(argv, pathToSerenityListener, pathsToScenarios) {
|
|
156
|
+
const cucumber = this.loader.require('@cucumber/cucumber');
|
|
157
|
+
const output = this.output.get();
|
|
158
|
+
return new cucumber.Cli({
|
|
159
|
+
argv: argv.concat('--format', `${pathToSerenityListener}:${output.value()}`, ...pathsToScenarios),
|
|
160
|
+
cwd: this.loader.cwd,
|
|
161
|
+
stdout: process.stdout,
|
|
162
|
+
})
|
|
163
|
+
.run()
|
|
164
|
+
.then(cleanUpAndPassThrough(output), cleanUpAndReThrow(output));
|
|
165
|
+
}
|
|
166
|
+
runWithCucumber3to6(argv, pathToSerenityListener, pathsToScenarios) {
|
|
167
|
+
const cucumber = this.loader.require('cucumber');
|
|
168
|
+
const output = this.output.get();
|
|
169
|
+
return new cucumber.Cli({
|
|
170
|
+
argv: argv.concat('--format', `${pathToSerenityListener}:${output.value()}`, ...pathsToScenarios),
|
|
171
|
+
cwd: this.loader.cwd,
|
|
172
|
+
stdout: process.stdout,
|
|
173
|
+
})
|
|
174
|
+
.run()
|
|
175
|
+
.then(cleanUpAndPassThrough(output), cleanUpAndReThrow(output));
|
|
176
|
+
}
|
|
177
|
+
runWithCucumber2(argv, pathToSerenityListener, pathsToScenarios) {
|
|
178
|
+
const cucumber = this.loader.require('cucumber');
|
|
179
|
+
return new cucumber.Cli({
|
|
180
|
+
argv: argv.concat('--require', pathToSerenityListener, ...pathsToScenarios),
|
|
181
|
+
cwd: this.loader.cwd,
|
|
182
|
+
stdout: process.stdout,
|
|
183
|
+
}).run();
|
|
184
|
+
}
|
|
185
|
+
runWithCucumber0to1(argv, pathToSerenityListener, pathsToScenarios) {
|
|
186
|
+
return new Promise((resolve, reject) => {
|
|
187
|
+
this.loader.require('cucumber')
|
|
188
|
+
.Cli(argv.concat('--require', pathToSerenityListener, ...pathsToScenarios))
|
|
189
|
+
.run((wasSuccessful) => resolve());
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* @private
|
|
195
|
+
*/
|
|
196
|
+
function cleanUpAndPassThrough(output) {
|
|
197
|
+
return (result) => {
|
|
198
|
+
return output.cleanUp()
|
|
199
|
+
.then(() => result);
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @private
|
|
204
|
+
*/
|
|
205
|
+
function cleanUpAndReThrow(output) {
|
|
206
|
+
return (error) => {
|
|
207
|
+
return output.cleanUp()
|
|
208
|
+
.then(() => {
|
|
209
|
+
throw error;
|
|
210
|
+
}, ignoredError => {
|
|
211
|
+
throw error;
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
//# sourceMappingURL=CucumberCLIAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CucumberCLIAdapter.js","sourceRoot":"","sources":["../../src/adapter/CucumberCLIAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAI7B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD;;;;;;;GAOG;AACH,MAAM,OAAO,kBAAkB;IAQN;IAEA;IARb,gBAAgB,GAAa,EAAE,CAAC;IAEvB,OAAO,CAAkB;IAE1C,YACI,MAAsB,EACL,MAAoB,EACrC,UAAsB,EACL,MAA+B;QAF/B,WAAM,GAAN,MAAM,CAAc;QAEpB,WAAM,GAAN,MAAM,CAAyB;QAEhD,IAAI,CAAC,OAAO,GAAG,IAAI,eAAe,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,gBAAgB;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;YAC1B,CAAC,CAAC,gBAAgB;YAClB,CAAC,CAAC,qBAAqB,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CAAC,gBAA0B;QACjC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,GAAG,CAAC,2BAA2B,CAAC,EAAE;YACvE,iDAAiD;YACjD,0DAA0D;YAC1D,OAAO,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;gBAC/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umber/cucumber-js/blob/master/docs/cli.md).
|
|
3
|
+
* You can specify the options using either camelCase (i.e. `retryTagFilter`) or kebab-case (i.e. `retry-tag-filter`)
|
|
4
|
+
* as Serenity/JS will convert them to an appropriate format for you.
|
|
5
|
+
*
|
|
6
|
+
* @group Configuration
|
|
7
|
+
*/
|
|
8
|
+
export interface CucumberConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Paths to where your feature files are. Note that you don't need to specify the paths when
|
|
11
|
+
* using Serenity/JS with WebdriverIO or Protractor, as their respective adapters will do it for you.
|
|
12
|
+
*
|
|
13
|
+
* #### Learn more
|
|
14
|
+
* - [Cucumber docs: configuration](https://github.com/cucumber/cucumber-js/blob/main/docs/configuration.md)
|
|
15
|
+
*/
|
|
16
|
+
paths?: string[];
|
|
17
|
+
/**
|
|
18
|
+
* Prepare a test run but don't run it
|
|
19
|
+
*
|
|
20
|
+
* #### Learn more
|
|
21
|
+
* - [Cucumber docs: configuration](https://github.com/cucumber/cucumber-js/blob/main/docs/configuration.md)
|
|
22
|
+
* - [Cucumber docs: dry run mode](https://github.com/cucumber/cucumber-js/blob/main/docs/dry_run.md)
|
|
23
|
+
*
|
|
24
|
+
* @version 8.x
|
|
25
|
+
*/
|
|
26
|
+
dryRun?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Stop running tests when a test fails
|
|
29
|
+
*
|
|
30
|
+
* #### Learn more
|
|
31
|
+
* - [Cucumber docs: configuration](https://github.com/cucumber/cucumber-js/blob/main/docs/configuration.md)
|
|
32
|
+
* - [Cucumber docs: fail fast](https://github.com/cucumber/cucumber-js/blob/main/docs/fail_fast.md)
|
|
33
|
+
*
|
|
34
|
+
* @version 8.x
|
|
35
|
+
*/
|
|
36
|
+
failFast?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Enable/disable colors in output. Cucumber 1.x only!
|
|
39
|
+
* For Cucumber 2.x and above use `formatOptions: { colorsEnabled: false }`
|
|
40
|
+
*
|
|
41
|
+
* **Note** For Cucumber 2.x and above use the [`CucumberConfig.formatOptions`](https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/#formatOptions) instead.
|
|
42
|
+
*
|
|
43
|
+
* #### Disable colors in output in Cucumber 1.x
|
|
44
|
+
*
|
|
45
|
+
* ```ts
|
|
46
|
+
* colors: false
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* #### Disable colors in output in Cucumber 2.x and above
|
|
50
|
+
*
|
|
51
|
+
* ```ts
|
|
52
|
+
* formatOptions: { colorsEnabled: false }
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* #### Learn more
|
|
56
|
+
* - [Cucumber 1.x CLI options](https://github.com/cucumber/cucumber-js/blob/1.x/lib/cucumber/cli.js#L38)
|
|
57
|
+
*
|
|
58
|
+
* @version 1.x
|
|
59
|
+
*/
|
|
60
|
+
colors?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Step definitions and support files can be written in languages that transpile to JavaScript.
|
|
63
|
+
* To do set the `compiler` option to `<file_extension>:<module_name>`
|
|
64
|
+
*
|
|
65
|
+
* **NoteL** For Cucumber 4.x and above use the [`CucumberConfig.require`](https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/#require) option instead.
|
|
66
|
+
*
|
|
67
|
+
* #### Enable TypeScript support in Cucumber 1.x - 3.x
|
|
68
|
+
* ```ts
|
|
69
|
+
* compiler: 'ts:ts-node/register'
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* #### Learn more
|
|
73
|
+
* - [Cucumber 3.x documentation](https://github.com/cucumber/cucumber-js/blob/3.x/docs/cli.md#transpilers)
|
|
74
|
+
*
|
|
75
|
+
* @version 1.x - 3.x
|
|
76
|
+
*/
|
|
77
|
+
compiler?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Specify additional output formats, optionally supply PATH to redirect formatter output
|
|
80
|
+
*
|
|
81
|
+
* #### Learn more
|
|
82
|
+
* - [Cucumber output formats](https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#formats)
|
|
83
|
+
*/
|
|
84
|
+
format?: string[] | string;
|
|
85
|
+
/**
|
|
86
|
+
* Provide options for formatters
|
|
87
|
+
*
|
|
88
|
+
* #### Cucumber 1.x
|
|
89
|
+
* ```ts
|
|
90
|
+
* formatOptions: JSON.stringify({ option: 'value' })
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* #### Learn more
|
|
94
|
+
* - [Cucumber format options](https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#format-options)
|
|
95
|
+
*/
|
|
96
|
+
formatOptions?: object | string;
|
|
97
|
+
/**
|
|
98
|
+
* Only execute the scenarios with name matching the expression.
|
|
99
|
+
*
|
|
100
|
+
* #### Learn more
|
|
101
|
+
* - [Cucumber docs: running specific features](https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#running-specific-features)
|
|
102
|
+
*/
|
|
103
|
+
name?: string[];
|
|
104
|
+
/**
|
|
105
|
+
* In order to store and reuse commonly used CLI options,
|
|
106
|
+
* you can add a `cucumber.js` file to your project root directory.
|
|
107
|
+
* The file should export an object where the key is the profile name
|
|
108
|
+
* and the value is a string of CLI options.
|
|
109
|
+
*
|
|
110
|
+
* The profile can be applied with `-p <NAME>` or `--profile <NAME>`.
|
|
111
|
+
* This will prepend the profile's CLI options to the ones provided by the command line.
|
|
112
|
+
* Multiple profiles can be specified at a time.
|
|
113
|
+
*
|
|
114
|
+
* If no profile is specified and a profile named default exists,
|
|
115
|
+
* it will be applied.
|
|
116
|
+
*
|
|
117
|
+
* #### Learn more
|
|
118
|
+
* - [Cucumber profiles](https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#profiles)
|
|
119
|
+
*/
|
|
120
|
+
profile?: string[];
|
|
121
|
+
/**
|
|
122
|
+
* The number of times to retry a failing scenario before marking it as failed.
|
|
123
|
+
*
|
|
124
|
+
* #### Cucumber 7.x
|
|
125
|
+
*
|
|
126
|
+
* ```ts
|
|
127
|
+
* retry: 3
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
130
|
+
* #### Learn more
|
|
131
|
+
* - [Cucumber docs: retry failing tests](https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#retry-failing-tests)
|
|
132
|
+
*
|
|
133
|
+
* @version 7.x
|
|
134
|
+
*/
|
|
135
|
+
retry?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Relative path to an output file produced by Cucumber.js [`rerun` formatter](https://github.com/cucumber/cucumber-js/blob/master/features/rerun_formatter.feature).
|
|
138
|
+
*
|
|
139
|
+
* **Note:** that the name of the output file *must* start with an `@` symbol.
|
|
140
|
+
*
|
|
141
|
+
* #### Saving details of failed scenarios to `@rerun-output.txt`
|
|
142
|
+
*
|
|
143
|
+
* ```ts
|
|
144
|
+
* format: [ 'rerun:@rerun-output.txt' ]
|
|
145
|
+
* ```
|
|
146
|
+
*
|
|
147
|
+
* #### Re-running scenarios saved to `@rerun-output.txt`
|
|
148
|
+
* ```ts
|
|
149
|
+
* rerun: '@rerun-output.txt'
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
rerun?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Only retry tests matching the given [tag expression](https://github.com/cucumber/cucumber/tree/master/tag-expressions).
|
|
155
|
+
*
|
|
156
|
+
* #### Cucumber 7.x
|
|
157
|
+
* ```ts
|
|
158
|
+
* retry: 3,
|
|
159
|
+
* retryTagFilter: '@flaky',
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* #### Learn more
|
|
163
|
+
* - [Cucumber docs: retry failing tests](https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#retry-failing-tests)
|
|
164
|
+
*
|
|
165
|
+
* @version 7.x
|
|
166
|
+
*/
|
|
167
|
+
retryTagFilter?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Require files or node modules before executing features
|
|
170
|
+
*
|
|
171
|
+
* #### Enable TypeScript support in Cucumber 4.x and above
|
|
172
|
+
* ```ts
|
|
173
|
+
* require: 'ts:ts-node/register'
|
|
174
|
+
* ```
|
|
175
|
+
* #### Learn more
|
|
176
|
+
* - [Cucumber docs: requiring support files](https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#requiring-support-files)
|
|
177
|
+
*/
|
|
178
|
+
require?: string[];
|
|
179
|
+
/**
|
|
180
|
+
* Paths to where your support code is.
|
|
181
|
+
*
|
|
182
|
+
* #### Learn more
|
|
183
|
+
* - [Cucumber docs: configuration](https://github.com/cucumber/cucumber-js/blob/main/docs/configuration.md)
|
|
184
|
+
*
|
|
185
|
+
* @version 8.x
|
|
186
|
+
*/
|
|
187
|
+
import?: string[];
|
|
188
|
+
/**
|
|
189
|
+
* Names of transpilation modules to load, loaded via require()
|
|
190
|
+
*
|
|
191
|
+
* #### Learn more
|
|
192
|
+
* - [Cucumber docs: transpiling](https://github.com/cucumber/cucumber-js/blob/main/docs/transpiling.md)
|
|
193
|
+
*
|
|
194
|
+
* @version 8.x
|
|
195
|
+
*/
|
|
196
|
+
requireModule?: string[];
|
|
197
|
+
/**
|
|
198
|
+
* Default language for your feature files
|
|
199
|
+
*
|
|
200
|
+
* #### Learn more
|
|
201
|
+
* - [Cucumber docs: configuration](https://github.com/cucumber/cucumber-js/blob/main/docs/configuration.md)
|
|
202
|
+
*
|
|
203
|
+
* @version 8.x
|
|
204
|
+
*/
|
|
205
|
+
language?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Only run scenarios that match the given tags.
|
|
208
|
+
*
|
|
209
|
+
* **Note**: Cucumber 1.x requires the `tags` option to be an array of Cucumber tags,
|
|
210
|
+
* while Cucumber 2.x and above uses a `string`
|
|
211
|
+
* with a [tag expression](https://github.com/cucumber/cucumber/tree/master/tag-expressions).
|
|
212
|
+
*
|
|
213
|
+
* #### Cucumber 1.x
|
|
214
|
+
* ```ts
|
|
215
|
+
* // Run all scenarios tagged with `@smoketest`, but not with `@wip`:
|
|
216
|
+
* tag: [ '@smoketest', '~@wip' ]
|
|
217
|
+
* ```
|
|
218
|
+
*
|
|
219
|
+
* #### Cucumber >= 2.x
|
|
220
|
+
* ```ts
|
|
221
|
+
* // Run all scenarios tagged with `@smoketest`, but not with `@wip`:
|
|
222
|
+
* tag: '@smoketest and not @wip'
|
|
223
|
+
* ```
|
|
224
|
+
*
|
|
225
|
+
* #### Learn more
|
|
226
|
+
*
|
|
227
|
+
* - [Cucumber 1.x docs: tags](https://github.com/cucumber/cucumber-js/blob/1.x/docs/cli.md#tags)
|
|
228
|
+
* - [Cucumber 2.x docs: tags](https://github.com/cucumber/cucumber-js/blob/2.x/docs/cli.md#tags)
|
|
229
|
+
* - [Cucumber docs: tag expressions](https://github.com/cucumber/cucumber/tree/master/tag-expressions)
|
|
230
|
+
*/
|
|
231
|
+
tags?: string[] | string;
|
|
232
|
+
/**
|
|
233
|
+
* Fail if there are any undefined or pending steps
|
|
234
|
+
*/
|
|
235
|
+
strict?: boolean;
|
|
236
|
+
/**
|
|
237
|
+
* Provide parameters that will be passed to the world constructor
|
|
238
|
+
*
|
|
239
|
+
* #### Specifying `worldParameters` as `string`
|
|
240
|
+
* ```ts
|
|
241
|
+
* worldParameters: JSON.stringify({ isDev: process.env.NODE_ENV !== 'production' })
|
|
242
|
+
* ```
|
|
243
|
+
*
|
|
244
|
+
* #### Specifying `worldParameters` as `object`
|
|
245
|
+
* ```ts
|
|
246
|
+
* worldParameters: { isDev: process.env.NODE_ENV !== 'production' }
|
|
247
|
+
* ```
|
|
248
|
+
*
|
|
249
|
+
* #### Learn more
|
|
250
|
+
*
|
|
251
|
+
* - [Cucumber docs: world parameters](https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#world-parameters)
|
|
252
|
+
*/
|
|
253
|
+
worldParameters?: object | string;
|
|
254
|
+
}
|
|
255
|
+
//# sourceMappingURL=CucumberConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CucumberConfig.d.ts","sourceRoot":"","sources":["../../src/adapter/CucumberConfig.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,M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AM,GAAG,MAAM,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CucumberConfig.js","sourceRoot":"","sources":["../../src/adapter/CucumberConfig.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a Cucumber.js formatter
|
|
3
|
+
*
|
|
4
|
+
* ## Learn more
|
|
5
|
+
*
|
|
6
|
+
* - [Cucumber formatters](https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#built-in-formatters)
|
|
7
|
+
*
|
|
8
|
+
* @group Integration
|
|
9
|
+
*/
|
|
10
|
+
export declare class CucumberFormat {
|
|
11
|
+
readonly value: string;
|
|
12
|
+
readonly formatter: string;
|
|
13
|
+
readonly output: string;
|
|
14
|
+
/**
|
|
15
|
+
* @param value
|
|
16
|
+
* Cucumber format expression, like `pretty` or `json:out.json`
|
|
17
|
+
*/
|
|
18
|
+
constructor(value: string);
|
|
19
|
+
/**
|
|
20
|
+
* See https://github.com/cucumber/cucumber-js/blob/master/src/cli/option_splitter.ts
|
|
21
|
+
*
|
|
22
|
+
* @param format
|
|
23
|
+
*/
|
|
24
|
+
private static split;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=CucumberFormat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CucumberFormat.d.ts","sourceRoot":"","sources":["../../src/adapter/CucumberFormat.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,qBAAa,cAAc;aAQK,KAAK,EAAE,MAAM;IAPzC,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,MAAM,EAAE,MAAM,CAAC;IAE/B;;;OAGG;gBACyB,KAAK,EAAE,MAAM;IAMzC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,KAAK;CAiBvB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ensure, isNotBlank, isString } from 'tiny-types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a Cucumber.js formatter
|
|
4
|
+
*
|
|
5
|
+
* ## Learn more
|
|
6
|
+
*
|
|
7
|
+
* - [Cucumber formatters](https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#built-in-formatters)
|
|
8
|
+
*
|
|
9
|
+
* @group Integration
|
|
10
|
+
*/
|
|
11
|
+
export class CucumberFormat {
|
|
12
|
+
value;
|
|
13
|
+
formatter;
|
|
14
|
+
output;
|
|
15
|
+
/**
|
|
16
|
+
* @param value
|
|
17
|
+
* Cucumber format expression, like `pretty` or `json:out.json`
|
|
18
|
+
*/
|
|
19
|
+
constructor(value) {
|
|
20
|
+
this.value = value;
|
|
21
|
+
[this.formatter, this.output] = CucumberFormat.split(ensure('format', value, isString(), isNotBlank()));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* See https://github.com/cucumber/cucumber-js/blob/master/src/cli/option_splitter.ts
|
|
25
|
+
*
|
|
26
|
+
* @param format
|
|
27
|
+
*/
|
|
28
|
+
static split(format) {
|
|
29
|
+
const parts = format.split(/([^A-Z]):(?!\\)/);
|
|
30
|
+
const result = parts.reduce((memo, part, i) => {
|
|
31
|
+
if (partNeedsRecombined(i)) {
|
|
32
|
+
memo.push(parts.slice(i, i + 2).join(''));
|
|
33
|
+
}
|
|
34
|
+
return memo;
|
|
35
|
+
}, []);
|
|
36
|
+
if (result.length === 1) {
|
|
37
|
+
result.push('');
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @private
|
|
44
|
+
*/
|
|
45
|
+
function partNeedsRecombined(i) {
|
|
46
|
+
return i % 2 === 0;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=CucumberFormat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CucumberFormat.js","sourceRoot":"","sources":["../../src/adapter/CucumberFormat.ts"],"names":[],"mappings":"AAA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