@serenity-js/cucumber 3.41.2 → 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 +12 -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 +43 -8
- 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
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { RuntimeError } from '@serenity-js/core';
|
|
2
|
+
import { AssertionError, ErrorSerialiser, ImplementationPendingError, TestCompromisedError } from '@serenity-js/core/errors';
|
|
3
|
+
import { FileSystemLocation, Path } from '@serenity-js/core/io';
|
|
4
|
+
import { ExecutionCompromised, ExecutionFailedWithAssertionError, ExecutionFailedWithError, ExecutionSkipped, ExecutionSuccessful, ImplementationPending, Name } from '@serenity-js/core/model';
|
|
5
|
+
import { ensure, isDefined } from 'tiny-types';
|
|
6
|
+
import { AmbiguousStepDefinitionError } from '../../errors/index.js';
|
|
7
|
+
import { Feature, Hook, Scenario, ScenarioOutline, Step } from './gherkin/index.js';
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
export function cucumberEventProtocolAdapter({ serenity, notifier, mapper, cache }) {
|
|
12
|
+
return class CucumberEventProtocolAdapter {
|
|
13
|
+
// note: exported class expression can't have private properties
|
|
14
|
+
log;
|
|
15
|
+
constructor({ eventBroadcaster, log }) {
|
|
16
|
+
this.log = log;
|
|
17
|
+
eventBroadcaster.on('gherkin-document', ({ uri, document }) => {
|
|
18
|
+
ensure('gherkin-document :: uri', uri, isDefined());
|
|
19
|
+
ensure('gherkin-document :: document', document, isDefined());
|
|
20
|
+
const path = new Path(uri);
|
|
21
|
+
cache.set(path, mapper.map(document, path));
|
|
22
|
+
});
|
|
23
|
+
eventBroadcaster.on('test-case-prepared', ({ steps, sourceLocation }) => {
|
|
24
|
+
ensure('test-case-prepared :: steps', steps, isDefined());
|
|
25
|
+
ensure('test-case-prepared :: sourceLocation', sourceLocation, isDefined());
|
|
26
|
+
const path = new Path(sourceLocation.uri), map = cache.get(path), scenario = map.get(Scenario).onLine(sourceLocation.line);
|
|
27
|
+
if (scenario.outline) {
|
|
28
|
+
const outline = map.get(ScenarioOutline).onLine(scenario.outline.line);
|
|
29
|
+
map.set(new ScenarioOutline(outline.location, outline.name, outline.description, outline.steps, outline.parameters)).onLine(scenario.outline.line);
|
|
30
|
+
}
|
|
31
|
+
map.set(new Scenario(scenario.location, scenario.name, scenario.description, interleaveStepsAndHooks(scenario.steps, steps), scenario.tags, scenario.outline)).onLine(sourceLocation.line);
|
|
32
|
+
});
|
|
33
|
+
eventBroadcaster.on('test-case-started', ({ sourceLocation }) => {
|
|
34
|
+
ensure('test-case-started :: sourceLocation', sourceLocation, isDefined());
|
|
35
|
+
const map = cache.get(new Path(sourceLocation.uri)), scenario = map.get(Scenario).onLine(sourceLocation.line), sceneId = serenity.assignNewSceneId();
|
|
36
|
+
if (scenario.outline) {
|
|
37
|
+
const outline = map.get(ScenarioOutline).onLine(scenario.outline.line);
|
|
38
|
+
notifier.outlineDetected(sceneId, scenario, outline, map.getFirst(Feature));
|
|
39
|
+
}
|
|
40
|
+
notifier.scenarioStarts(sceneId, scenario, map.getFirst(Feature));
|
|
41
|
+
});
|
|
42
|
+
eventBroadcaster.on('test-step-started', ({ index, testCase }) => {
|
|
43
|
+
ensure('test-step-started :: index', index, isDefined());
|
|
44
|
+
ensure('test-step-started :: testCase', testCase, isDefined());
|
|
45
|
+
const map = cache.get(new Path(testCase.sourceLocation.uri)), scenario = map.get(Scenario).onLine(testCase.sourceLocation.line), step = scenario.steps[index];
|
|
46
|
+
if (step instanceof Step) { // ignore hooks
|
|
47
|
+
notifier.stepStarts(step);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
eventBroadcaster.on('test-step-finished', ({ index, result, testCase }) => {
|
|
51
|
+
ensure('test-step-finished :: index', index, isDefined());
|
|
52
|
+
ensure('test-step-finished :: result', result, isDefined());
|
|
53
|
+
ensure('test-step-finished :: testCase', testCase, isDefined());
|
|
54
|
+
const map = cache.get(new Path(testCase.sourceLocation.uri)), scenario = map.get(Scenario).onLine(testCase.sourceLocation.line), step = scenario.steps[index];
|
|
55
|
+
if (step instanceof Step) { // ignore hooks
|
|
56
|
+
notifier.stepFinished(step, this.outcomeFrom(result));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
eventBroadcaster.on('test-case-finished', ({ result, sourceLocation }) => {
|
|
60
|
+
ensure('test-case-finished :: result', result, isDefined());
|
|
61
|
+
ensure('test-case-finished :: sourceLocation', sourceLocation, isDefined());
|
|
62
|
+
const map = cache.get(new Path(sourceLocation.uri)), scenario = map.get(Scenario).onLine(sourceLocation.line), nonHookSteps = scenario.steps.filter(step => step instanceof Step);
|
|
63
|
+
const outcome = nonHookSteps.length > 0
|
|
64
|
+
? this.outcomeFrom(result)
|
|
65
|
+
: new ImplementationPending(new ImplementationPendingError(`"${scenario.name.value}" has no test steps`));
|
|
66
|
+
notifier.scenarioFinished(scenario, map.getFirst(Feature), outcome);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
outcomeFrom(result) {
|
|
70
|
+
const error = !!result.exception && this.errorFrom(result.exception);
|
|
71
|
+
switch (result.status) {
|
|
72
|
+
case 'undefined':
|
|
73
|
+
return new ImplementationPending(new ImplementationPendingError('Step not implemented'));
|
|
74
|
+
case 'ambiguous':
|
|
75
|
+
case 'failed':
|
|
76
|
+
switch (true) {
|
|
77
|
+
case error instanceof AssertionError: return new ExecutionFailedWithAssertionError(error);
|
|
78
|
+
case error instanceof TestCompromisedError: return new ExecutionCompromised(error);
|
|
79
|
+
default: return new ExecutionFailedWithError(error);
|
|
80
|
+
}
|
|
81
|
+
case 'pending':
|
|
82
|
+
return new ImplementationPending(new ImplementationPendingError('Step not implemented'));
|
|
83
|
+
case 'skipped':
|
|
84
|
+
return new ExecutionSkipped();
|
|
85
|
+
// case 'passed':
|
|
86
|
+
default:
|
|
87
|
+
return new ExecutionSuccessful();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
errorFrom(maybeError) {
|
|
91
|
+
switch (true) {
|
|
92
|
+
case maybeError instanceof RuntimeError:
|
|
93
|
+
return maybeError;
|
|
94
|
+
case maybeError instanceof Error && maybeError.name === 'AssertionError' && maybeError.message && hasOwnProperty(maybeError, 'expected') && hasOwnProperty(maybeError, 'actual'):
|
|
95
|
+
return serenity.createError(AssertionError, {
|
|
96
|
+
message: maybeError.message,
|
|
97
|
+
diff: {
|
|
98
|
+
expected: maybeError.expected,
|
|
99
|
+
actual: maybeError.actual,
|
|
100
|
+
},
|
|
101
|
+
cause: maybeError
|
|
102
|
+
});
|
|
103
|
+
case typeof maybeError === 'string' && maybeError.startsWith('Multiple step definitions match'):
|
|
104
|
+
return new AmbiguousStepDefinitionError(maybeError);
|
|
105
|
+
default:
|
|
106
|
+
return ErrorSerialiser.deserialiseFromStackTrace(maybeError);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @private
|
|
113
|
+
*/
|
|
114
|
+
function interleaveStepsAndHooks(steps, stepsLocations) {
|
|
115
|
+
const isAHook = (stepLocations) => stepLocations.actionLocation && !stepLocations.sourceLocation, matching = (location) => (step) => step.location.path.equals(new Path(location.sourceLocation.uri)) &&
|
|
116
|
+
step.location.line === location.sourceLocation.line;
|
|
117
|
+
return stepsLocations.map(location => isAHook(location)
|
|
118
|
+
? new Hook(new FileSystemLocation(new Path(location.actionLocation.uri), location.actionLocation.line), new Name('Setup'))
|
|
119
|
+
: steps.find(matching(location)));
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @private
|
|
123
|
+
*/
|
|
124
|
+
function hasOwnProperty(value, fieldName) {
|
|
125
|
+
return Object.prototype.hasOwnProperty.call(value, fieldName);
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=CucumberEventProtocolAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CucumberEventProtocolAdapter.js","sourceRoot":"","sources":["../../../src/listeners/legacy/CucumberEventProtocolAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC7H,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAGhE,OAAO,EACH,oBAAoB,EACpB,iCAAiC,EACjC,wBAAwB,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,IAAI,EACP,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAGrE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAYpF;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,EAAE,QAAQ,EAAE,QAAQ,EA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;QAC5H,CAAC,CAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CACzC,CAAC;AACN,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CAAC,KAAU,EAAE,SAAiB;IACjD,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { EventEmitter } from 'events';
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
*/
|
|
5
|
+
export interface CucumberFormatterOptions {
|
|
6
|
+
colorFns: any;
|
|
7
|
+
cwd: any;
|
|
8
|
+
eventDataCollector: any;
|
|
9
|
+
eventBroadcaster: EventEmitter;
|
|
10
|
+
log: typeof process.stdout.write;
|
|
11
|
+
snippetBuilder: any;
|
|
12
|
+
stream: any;
|
|
13
|
+
supportCodeLibrary: any;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=CucumberFormatterOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CucumberFormatterOptions.d.ts","sourceRoot":"","sources":["../../../src/listeners/legacy/CucumberFormatterOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,QAAQ,EAAE,GAAG,CAAC;IACd,GAAG,EAAE,GAAG,CAAC;IACT,kBAAkB,EAAE,GAAG,CAAC;IACxB,gBAAgB,EAAE,YAAY,CAAC;IAC/B,GAAG,EAAE,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;IACjC,cAAc,EAAE,GAAG,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC;IACZ,kBAAkB,EAAE,GAAG,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CucumberFormatterOptions.js","sourceRoot":"","sources":["../../../src/listeners/legacy/CucumberFormatterOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Serenity } from '@serenity-js/core';
|
|
2
|
+
import type { Path } from '@serenity-js/core/io';
|
|
3
|
+
import type { Cache, FeatureFileLoader, FeatureFileMap, FeatureFileMapper } from './gherkin/index.js';
|
|
4
|
+
import type { Notifier, ResultMapper } from './notifier/index.js';
|
|
5
|
+
/**
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
export interface Dependencies {
|
|
9
|
+
serenity: Serenity;
|
|
10
|
+
notifier: Notifier;
|
|
11
|
+
mapper: FeatureFileMapper;
|
|
12
|
+
resultMapper: ResultMapper;
|
|
13
|
+
cache: Cache<Path, FeatureFileMap>;
|
|
14
|
+
loader: FeatureFileLoader;
|
|
15
|
+
cucumber: any;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=Dependencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dependencies.d.ts","sourceRoot":"","sources":["../../../src/listeners/legacy/Dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtG,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,YAAY,EAAE,YAAY,CAAA;IAC1B,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IACnC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,EAAE,GAAG,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dependencies.js","sourceRoot":"","sources":["../../../src/listeners/legacy/Dependencies.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-0.d.ts","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-0.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,MAAM,CAAC,OAAO,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,YAAY,SAClE,IAAI,CAmG3B"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Path } from '@serenity-js/core/io';
|
|
2
|
+
import { ExecutionFailedWithError, ExecutionSuccessful } from '@serenity-js/core/model';
|
|
3
|
+
import { AmbiguousStepDefinitionError } from '../../errors/index.js';
|
|
4
|
+
import { Feature, Scenario, ScenarioOutline } from './gherkin/index.js';
|
|
5
|
+
export default function ({ serenity, notifier, resultMapper, loader, cache }) {
|
|
6
|
+
return function () {
|
|
7
|
+
this.registerHandler('BeforeFeatures', () => {
|
|
8
|
+
notifier.testRunStarts();
|
|
9
|
+
});
|
|
10
|
+
this.registerHandler('BeforeFeature', function (feature, callback) {
|
|
11
|
+
loader.load(get(feature, 'uri').as(Path))
|
|
12
|
+
.then(_ => callback(), error => callback(error));
|
|
13
|
+
});
|
|
14
|
+
this.registerHandler('BeforeScenario', function (scenario) {
|
|
15
|
+
const path = get(scenario, 'uri').as(Path), line = get(scenario, 'line').value(), lines = get(scenario, 'lines').value(), isOutline = lines.length === 2;
|
|
16
|
+
const sceneId = serenity.assignNewSceneId(), map = cache.get(path);
|
|
17
|
+
if (isOutline) {
|
|
18
|
+
notifier.outlineDetected(sceneId, map.get(Scenario).onLine(line), map.get(ScenarioOutline).onLine(lines[1]), map.getFirst(Feature));
|
|
19
|
+
}
|
|
20
|
+
notifier.scenarioStarts(sceneId, map.get(Scenario).onLine(line), map.getFirst(Feature));
|
|
21
|
+
});
|
|
22
|
+
this.registerHandler('BeforeStep', function (step) {
|
|
23
|
+
if (shouldIgnore(step)) {
|
|
24
|
+
return void 0;
|
|
25
|
+
}
|
|
26
|
+
const scenario = get(step, 'scenario').value(), path = get(scenario, 'uri').as(Path);
|
|
27
|
+
notifier.stepStarts(findStepMatching(step, cache.get(path)));
|
|
28
|
+
});
|
|
29
|
+
this.registerHandler('StepResult', function (result) {
|
|
30
|
+
const step = get(result, 'step').value(), scenario = get(step, 'scenario').value(), path = get(scenario, 'uri').as(Path);
|
|
31
|
+
if (shouldIgnore(step)) {
|
|
32
|
+
return void 0;
|
|
33
|
+
}
|
|
34
|
+
notifier.stepFinished(findStepMatching(step, cache.get(path)), resultMapper.outcomeFor(get(result, 'status').value(), get(result, 'failureException').value() || ambiguousStepsDetectedIn(result)));
|
|
35
|
+
});
|
|
36
|
+
this.registerHandler('ScenarioResult', function (result, callback) {
|
|
37
|
+
const scenario = get(result, 'scenario').value(), path = get(scenario, 'uri').as(Path), line = get(scenario, 'line').value(), outcome = resultMapper.outcomeFor(get(result, 'status').value(), get(result, 'failureException').value());
|
|
38
|
+
const map = cache.get(path);
|
|
39
|
+
notifier.scenarioFinishes();
|
|
40
|
+
serenity.waitForNextCue()
|
|
41
|
+
.then(() => {
|
|
42
|
+
notifier.scenarioFinished(map.get(Scenario).onLine(line), map.getFirst(Feature), outcome);
|
|
43
|
+
callback();
|
|
44
|
+
}, error => {
|
|
45
|
+
notifier.scenarioFinished(map.get(Scenario).onLine(line), map.getFirst(Feature), outcome);
|
|
46
|
+
callback(error);
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
this.registerHandler('AfterFeatures', (features, callback) => {
|
|
50
|
+
notifier.testRunFinishes();
|
|
51
|
+
serenity.waitForNextCue()
|
|
52
|
+
.then(() => {
|
|
53
|
+
notifier.testRunFinished(new ExecutionSuccessful());
|
|
54
|
+
return callback();
|
|
55
|
+
}, error => {
|
|
56
|
+
notifier.testRunFinished(new ExecutionFailedWithError(error));
|
|
57
|
+
return callback(error);
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function get(object, property) {
|
|
63
|
+
const getter = 'get' + property.charAt(0).toUpperCase() + property.slice(1);
|
|
64
|
+
const value = object[getter]
|
|
65
|
+
? object[getter]()
|
|
66
|
+
: object[property];
|
|
67
|
+
return ({
|
|
68
|
+
as: (type) => new type(value),
|
|
69
|
+
value: () => value,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function is(object, property) {
|
|
73
|
+
const getter = 'is' + property.charAt(0).toUpperCase() + property.slice(1);
|
|
74
|
+
return object[getter] ? object[getter]() : object[getter];
|
|
75
|
+
}
|
|
76
|
+
function findStepMatching(step, map) {
|
|
77
|
+
const stepLine = get(step, 'line').value(), scenario = get(step, 'scenario').value(), path = get(scenario, 'uri').as(Path), scenarioLine = get(scenario, 'line').value();
|
|
78
|
+
const matchedStep = map.get(Scenario).onLine(scenarioLine).steps.find(s => s.location.line === stepLine);
|
|
79
|
+
if (!matchedStep) {
|
|
80
|
+
throw new Error(`No step was found in ${path} on line ${stepLine}. This looks like a bug.`);
|
|
81
|
+
}
|
|
82
|
+
return matchedStep;
|
|
83
|
+
}
|
|
84
|
+
function ambiguousStepsDetectedIn(result) {
|
|
85
|
+
const ambiguousStepDefinitions = get(result, 'ambiguousStepDefinitions').value() || [];
|
|
86
|
+
if (ambiguousStepDefinitions.length === 0) {
|
|
87
|
+
return void 0;
|
|
88
|
+
}
|
|
89
|
+
return ambiguousStepDefinitions
|
|
90
|
+
.map(step => `${get(step, 'pattern').value().toString()} - ${get(step, 'uri').value()}:${get(step, 'line').value()}`)
|
|
91
|
+
.reduce((error, issue) => {
|
|
92
|
+
error.message += `\n${issue}`;
|
|
93
|
+
return error;
|
|
94
|
+
}, new AmbiguousStepDefinitionError('Multiple step definitions match:'));
|
|
95
|
+
}
|
|
96
|
+
function shouldIgnore(step) {
|
|
97
|
+
return is(step, 'hidden') // cucumber 0-1
|
|
98
|
+
|| (step.constructor && step.constructor.name === 'Hook'); // cucumber 2
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=cucumber-0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-0.js","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAGrE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAExE,MAAM,CAAC,OAAO,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAgB;IACtF,OAAO;QACH,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,GAAG,EAAE;YACxC,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC7B,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,eAAe,EAAE,UAAU,OAAO,EAAE,QAAQ;YAC7D,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;iBACpC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,UAAU,QAAQ;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AAC,CAAC,CAAE,aAAa;AACjF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-1.d.ts","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-1.js","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-2.d.ts","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-2.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,CAAC,OAAO,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,YAAY,SAKpF,IAAI,CAG3B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import cucumber0 from './cucumber-0.js';
|
|
2
|
+
export default function ({ serenity, notifier, resultMapper, loader, cucumber, cache, mapper }) {
|
|
3
|
+
cucumber.defineSupportCode(support => cucumber0({ serenity, notifier, resultMapper, loader, cucumber, cache, mapper }).call(support));
|
|
4
|
+
return function () {
|
|
5
|
+
// no-op
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=cucumber-2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-2.js","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-2.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAGxC,MAAM,CAAC,OAAO,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAgB;IACxG,QAAQ,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,CACjC,SAAS,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CACjG,CAAC;IAEF,OAAO;QACH,QAAQ;IACZ,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Dependencies } from './Dependencies.js';
|
|
2
|
+
export default function (dependencies: Dependencies): {
|
|
3
|
+
new ({ eventBroadcaster, log }: import("./CucumberFormatterOptions.js").CucumberFormatterOptions): {
|
|
4
|
+
readonly log: any;
|
|
5
|
+
outcomeFrom(result: {
|
|
6
|
+
duration: number;
|
|
7
|
+
exception: string | Error;
|
|
8
|
+
status: string;
|
|
9
|
+
}): import("@serenity-js/core/model").Outcome;
|
|
10
|
+
errorFrom(maybeError: Error | string): Error;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=cucumber-3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-3.d.ts","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-3.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,MAAM,CAAC,OAAO,WAAW,YAAY,EAAE,YAAY;;;;;;;;;;EA4BlD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ExecutionFailedWithError, ExecutionSuccessful } from '@serenity-js/core/model';
|
|
2
|
+
import { cucumberEventProtocolAdapter } from './CucumberEventProtocolAdapter.js';
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
4
|
+
export default function (dependencies) {
|
|
5
|
+
dependencies.cucumber.defineSupportCode(({ BeforeAll, After, AfterAll }) => {
|
|
6
|
+
BeforeAll(function () {
|
|
7
|
+
dependencies.notifier.testRunStarts();
|
|
8
|
+
});
|
|
9
|
+
After(function () {
|
|
10
|
+
dependencies.notifier.scenarioFinishes();
|
|
11
|
+
return dependencies.serenity.waitForNextCue();
|
|
12
|
+
});
|
|
13
|
+
AfterAll(async function () {
|
|
14
|
+
dependencies.notifier.testRunFinishes();
|
|
15
|
+
try {
|
|
16
|
+
await dependencies.serenity.waitForNextCue();
|
|
17
|
+
dependencies.notifier.testRunFinished(new ExecutionSuccessful());
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
dependencies.notifier.testRunFinished(new ExecutionFailedWithError(error));
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
return cucumberEventProtocolAdapter(dependencies);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=cucumber-3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-3.js","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAGjF,6EAA6E;AAC7E,MAAM,CAAC,OAAO,WAAW,YAA0B;IAE/C,YAAY,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;QACvE,SAAS,CAAC;YACN,YAAY,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC1C,CAAC,CAAC,CAAC;QAEH,KAAK,CAAC;YACF,YAAY,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;YAEzC,OAAO,YAAY,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC;QAClD,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,KAAK;YACV,YAAY,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC;YAExC,IAAI,CAAC;gBACD,MAAM,YAAY,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAA;gBAC5C,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAC;YACrE,CAAC;YACD,OAAM,KAAK,EAAE,CAAC;gBACV,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC3E,MAAM,KAAK,CAAC;YAChB,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,4BAA4B,CAAC,YAAY,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Dependencies } from './Dependencies.js';
|
|
2
|
+
export default function (dependencies: Dependencies): {
|
|
3
|
+
new ({ eventBroadcaster, log }: import("./CucumberFormatterOptions.js").CucumberFormatterOptions): {
|
|
4
|
+
readonly log: any;
|
|
5
|
+
outcomeFrom(result: {
|
|
6
|
+
duration: number;
|
|
7
|
+
exception: string | Error;
|
|
8
|
+
status: string;
|
|
9
|
+
}): import("@serenity-js/core/model").Outcome;
|
|
10
|
+
errorFrom(maybeError: Error | string): Error;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=cucumber-4.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-4.d.ts","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-4.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,MAAM,CAAC,OAAO,WAAW,YAAY,EAAE,YAAY;;;;;;;;;;EA2BlD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ExecutionFailedWithError, ExecutionSuccessful } from '@serenity-js/core/model';
|
|
2
|
+
import { cucumberEventProtocolAdapter } from './CucumberEventProtocolAdapter.js';
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
4
|
+
export default function (dependencies) {
|
|
5
|
+
const { BeforeAll, After, AfterAll } = dependencies.cucumber;
|
|
6
|
+
BeforeAll(function () {
|
|
7
|
+
dependencies.notifier.testRunStarts();
|
|
8
|
+
});
|
|
9
|
+
After(function () {
|
|
10
|
+
dependencies.notifier.scenarioFinishes();
|
|
11
|
+
return dependencies.serenity.waitForNextCue();
|
|
12
|
+
});
|
|
13
|
+
AfterAll(async function () {
|
|
14
|
+
dependencies.notifier.testRunFinishes();
|
|
15
|
+
try {
|
|
16
|
+
await dependencies.serenity.waitForNextCue();
|
|
17
|
+
dependencies.notifier.testRunFinished(new ExecutionSuccessful());
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
dependencies.notifier.testRunFinished(new ExecutionFailedWithError(error));
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return cucumberEventProtocolAdapter(dependencies);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=cucumber-4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-4.js","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAGjF,6EAA6E;AAC7E,MAAM,CAAC,OAAO,WAAW,YAA0B;IAC/C,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC,QAAQ,CAAC;IAE7D,SAAS,CAAC;QACN,YAAY,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC;QACF,YAAY,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;QAEzC,OAAO,YAAY,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,KAAK;QACV,YAAY,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC;QAExC,IAAI,CAAC;YACD,MAAM,YAAY,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAA;YAC5C,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAC;QACrE,CAAC;QACD,OAAM,KAAK,EAAE,CAAC;YACV,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;YAC3E,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,4BAA4B,CAAC,YAAY,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-5.d.ts","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-5.js","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-6.d.ts","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-6.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cucumber-6.js","sourceRoot":"","sources":["../../../src/listeners/legacy/cucumber-6.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { GherkinDocument } from './nodes/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Adapts the new @cucumber/gherkin Parser to produce output compatible with the old gherkin 5.x format.
|
|
4
|
+
*
|
|
5
|
+
* @private
|
|
6
|
+
*/
|
|
7
|
+
export declare class GherkinParserAdapter {
|
|
8
|
+
private readonly parser;
|
|
9
|
+
constructor();
|
|
10
|
+
parse(featureContent: string): GherkinDocument;
|
|
11
|
+
private adaptDocument;
|
|
12
|
+
private adaptFeature;
|
|
13
|
+
private adaptChild;
|
|
14
|
+
private adaptBackground;
|
|
15
|
+
private adaptScenario;
|
|
16
|
+
private adaptScenarioOutline;
|
|
17
|
+
private adaptStep;
|
|
18
|
+
private adaptDataTable;
|
|
19
|
+
private adaptDocString;
|
|
20
|
+
private adaptExamples;
|
|
21
|
+
private adaptTableRow;
|
|
22
|
+
private adaptTag;
|
|
23
|
+
private adaptComment;
|
|
24
|
+
/**
|
|
25
|
+
* Trims the description and returns it, or undefined if the description is empty.
|
|
26
|
+
* The old gherkin 5.x parser returned undefined for empty descriptions, which the mapper
|
|
27
|
+
* then passes directly to constructors using `description && new Description(description)`.
|
|
28
|
+
*/
|
|
29
|
+
private trimDescription;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=GherkinParserAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GherkinParserAdapter.d.ts","sourceRoot":"","sources":["../../../../src/listeners/legacy/gherkin/GherkinParserAdapter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAgE,eAAe,EAAsE,MAAM,kBAAkB,CAAC;AAE1L;;;;GAIG;AACH,qBAAa,oBAAoB;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;;IAS1D,KAAK,CAAC,cAAc,EAAE,MAAM,GAAG,eAAe;IAK9C,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,UAAU;IAelB,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,oBAAoB;IAa5B,OAAO,CAAC,SAAS;IAiBjB,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,YAAY;IAQpB;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAK1B"}
|