@serenity-js/serenity-bdd 3.0.0-rc.9 → 3.0.1
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 +96 -1358
- package/README.md +101 -43
- package/lib/cli/Argv.d.ts +1 -0
- package/lib/cli/Argv.d.ts.map +1 -0
- package/lib/cli/Printer.d.ts +1 -0
- package/lib/cli/Printer.d.ts.map +1 -0
- package/lib/cli/bootstrap.d.ts +2 -1
- package/lib/cli/bootstrap.d.ts.map +1 -0
- package/lib/cli/commands/run.d.ts +1 -0
- package/lib/cli/commands/run.d.ts.map +1 -0
- package/lib/cli/commands/run.js +38 -12
- package/lib/cli/commands/run.js.map +1 -1
- package/lib/cli/commands/update.d.ts +1 -0
- package/lib/cli/commands/update.d.ts.map +1 -0
- package/lib/cli/commands/update.js +14 -11
- package/lib/cli/commands/update.js.map +1 -1
- package/lib/cli/defaults.d.ts +1 -0
- package/lib/cli/defaults.d.ts.map +1 -0
- package/lib/cli/defaults.js +1 -1
- package/lib/cli/index.d.ts +1 -0
- package/lib/cli/index.d.ts.map +1 -0
- package/lib/cli/io/axiosClient.d.ts +2 -1
- package/lib/cli/io/axiosClient.d.ts.map +1 -0
- package/lib/cli/io/axiosClient.js +30 -5
- package/lib/cli/io/axiosClient.js.map +1 -1
- package/lib/cli/io/formatError.d.ts +1 -0
- package/lib/cli/io/formatError.d.ts.map +1 -0
- package/lib/cli/io/formatError.js +3 -1
- package/lib/cli/io/formatError.js.map +1 -1
- package/lib/cli/io/index.d.ts +1 -0
- package/lib/cli/io/index.d.ts.map +1 -0
- package/lib/cli/io/index.js +5 -1
- package/lib/cli/io/index.js.map +1 -1
- package/lib/cli/model/Complaint.d.ts +1 -0
- package/lib/cli/model/Complaint.d.ts.map +1 -0
- package/lib/cli/model/Credentials.d.ts +1 -0
- package/lib/cli/model/Credentials.d.ts.map +1 -0
- package/lib/cli/model/Credentials.js +5 -5
- package/lib/cli/model/Credentials.js.map +1 -1
- package/lib/cli/model/DownloadProgressReport.d.ts +1 -0
- package/lib/cli/model/DownloadProgressReport.d.ts.map +1 -0
- package/lib/cli/model/ExecutionError.d.ts +1 -2
- package/lib/cli/model/ExecutionError.d.ts.map +1 -0
- package/lib/cli/model/ExecutionError.js +0 -2
- package/lib/cli/model/ExecutionError.js.map +1 -1
- package/lib/cli/model/GAV.d.ts +1 -0
- package/lib/cli/model/GAV.d.ts.map +1 -0
- package/lib/cli/model/GAV.js +9 -9
- package/lib/cli/model/GAV.js.map +1 -1
- package/lib/cli/model/Notification.d.ts +1 -0
- package/lib/cli/model/Notification.d.ts.map +1 -0
- package/lib/cli/model/index.d.ts +1 -0
- package/lib/cli/model/index.d.ts.map +1 -0
- package/lib/cli/model/index.js +5 -1
- package/lib/cli/model/index.js.map +1 -1
- package/lib/cli/screenplay/abilities/UseFileSystem.d.ts +3 -3
- package/lib/cli/screenplay/abilities/UseFileSystem.d.ts.map +1 -0
- package/lib/cli/screenplay/abilities/UseFileSystem.js +5 -6
- package/lib/cli/screenplay/abilities/UseFileSystem.js.map +1 -1
- package/lib/cli/screenplay/abilities/index.d.ts +1 -0
- package/lib/cli/screenplay/abilities/index.d.ts.map +1 -0
- package/lib/cli/screenplay/abilities/index.js +5 -1
- package/lib/cli/screenplay/abilities/index.js.map +1 -1
- package/lib/cli/screenplay/index.d.ts +1 -0
- package/lib/cli/screenplay/index.d.ts.map +1 -0
- package/lib/cli/screenplay/index.js +5 -1
- package/lib/cli/screenplay/index.js.map +1 -1
- package/lib/cli/screenplay/interactions/CreateDirectory.d.ts +1 -0
- package/lib/cli/screenplay/interactions/CreateDirectory.d.ts.map +1 -0
- package/lib/cli/screenplay/interactions/Notify.d.ts +1 -0
- package/lib/cli/screenplay/interactions/Notify.d.ts.map +1 -0
- package/lib/cli/screenplay/interactions/RenameFile.d.ts +1 -0
- package/lib/cli/screenplay/interactions/RenameFile.d.ts.map +1 -0
- package/lib/cli/screenplay/interactions/Spawn.d.ts +8 -14
- package/lib/cli/screenplay/interactions/Spawn.d.ts.map +1 -0
- package/lib/cli/screenplay/interactions/Spawn.js +13 -22
- package/lib/cli/screenplay/interactions/Spawn.js.map +1 -1
- package/lib/cli/screenplay/interactions/StreamResponse.d.ts +7 -13
- package/lib/cli/screenplay/interactions/StreamResponse.d.ts.map +1 -0
- package/lib/cli/screenplay/interactions/StreamResponse.js +11 -20
- package/lib/cli/screenplay/interactions/StreamResponse.js.map +1 -1
- package/lib/cli/screenplay/interactions/TerminateFlow.d.ts +1 -0
- package/lib/cli/screenplay/interactions/TerminateFlow.d.ts.map +1 -0
- package/lib/cli/screenplay/interactions/index.d.ts +1 -0
- package/lib/cli/screenplay/interactions/index.d.ts.map +1 -0
- package/lib/cli/screenplay/interactions/index.js +5 -1
- package/lib/cli/screenplay/interactions/index.js.map +1 -1
- package/lib/cli/screenplay/questions/Checksum.d.ts +1 -0
- package/lib/cli/screenplay/questions/Checksum.d.ts.map +1 -0
- package/lib/cli/screenplay/questions/FileExists.d.ts +1 -0
- package/lib/cli/screenplay/questions/FileExists.d.ts.map +1 -0
- package/lib/cli/screenplay/questions/JavaExecutable.d.ts +1 -0
- package/lib/cli/screenplay/questions/JavaExecutable.d.ts.map +1 -0
- package/lib/cli/screenplay/questions/JavaExecutable.js +24 -1
- package/lib/cli/screenplay/questions/JavaExecutable.js.map +1 -1
- package/lib/cli/screenplay/questions/SerenityBDDArguments.d.ts +1 -0
- package/lib/cli/screenplay/questions/SerenityBDDArguments.d.ts.map +1 -0
- package/lib/cli/screenplay/questions/SerenityBDDArguments.js +3 -3
- package/lib/cli/screenplay/questions/SerenityBDDArguments.js.map +1 -1
- package/lib/cli/screenplay/questions/SystemProperties.d.ts +1 -0
- package/lib/cli/screenplay/questions/SystemProperties.d.ts.map +1 -0
- package/lib/cli/screenplay/questions/index.d.ts +1 -0
- package/lib/cli/screenplay/questions/index.d.ts.map +1 -0
- package/lib/cli/screenplay/questions/index.js +5 -1
- package/lib/cli/screenplay/questions/index.js.map +1 -1
- package/lib/cli/screenplay/tasks/DownloadArtifact.d.ts +8 -14
- package/lib/cli/screenplay/tasks/DownloadArtifact.d.ts.map +1 -0
- package/lib/cli/screenplay/tasks/DownloadArtifact.js +12 -21
- package/lib/cli/screenplay/tasks/DownloadArtifact.js.map +1 -1
- package/lib/cli/screenplay/tasks/InvokeSerenityBDD.d.ts +8 -14
- package/lib/cli/screenplay/tasks/InvokeSerenityBDD.d.ts.map +1 -0
- package/lib/cli/screenplay/tasks/InvokeSerenityBDD.js +12 -21
- package/lib/cli/screenplay/tasks/InvokeSerenityBDD.js.map +1 -1
- package/lib/cli/screenplay/tasks/VerifyChecksum.d.ts +1 -0
- package/lib/cli/screenplay/tasks/VerifyChecksum.d.ts.map +1 -0
- package/lib/cli/screenplay/tasks/index.d.ts +1 -0
- package/lib/cli/screenplay/tasks/index.d.ts.map +1 -0
- package/lib/cli/screenplay/tasks/index.js +5 -1
- package/lib/cli/screenplay/tasks/index.js.map +1 -1
- package/lib/cli/stage/NotificationReporter.d.ts +2 -1
- package/lib/cli/stage/NotificationReporter.d.ts.map +1 -0
- package/lib/cli/stage/NotificationReporter.js +1 -1
- package/lib/cli/stage/ProgressReporter.d.ts +2 -1
- package/lib/cli/stage/ProgressReporter.d.ts.map +1 -0
- package/lib/cli/stage/ProgressReporter.js +5 -2
- package/lib/cli/stage/ProgressReporter.js.map +1 -1
- package/lib/cli/stage/RunCommandActors.d.ts +1 -0
- package/lib/cli/stage/RunCommandActors.d.ts.map +1 -0
- package/lib/cli/stage/UpdateCommandActors.d.ts +1 -0
- package/lib/cli/stage/UpdateCommandActors.d.ts.map +1 -0
- package/lib/cli/stage/index.d.ts +1 -0
- package/lib/cli/stage/index.d.ts.map +1 -0
- package/lib/cli/stage/index.js +5 -1
- package/lib/cli/stage/index.js.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -1
- package/lib/index.js.map +1 -1
- package/lib/stage/crew/index.d.ts +1 -0
- package/lib/stage/crew/index.d.ts.map +1 -0
- package/lib/stage/crew/index.js +5 -1
- package/lib/stage/crew/index.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDJsonSchema.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDJsonSchema.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDReporter.d.ts +64 -57
- package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDReporter.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDReporter.js +80 -63
- package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDReporter.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/index.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/index.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/index.js +5 -1
- package/lib/stage/crew/serenity-bdd-reporter/index.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessor.d.ts +4 -3
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessor.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessor.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessors.d.ts +3 -2
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessors.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessors.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/LinkedTestStep.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/LinkedTestStep.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/SerenityBDDReportContext.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/SerenityBDDReportContext.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/index.d.ts +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/index.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/index.js +5 -2
- package/lib/stage/crew/serenity-bdd-reporter/processors/index.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/dashify.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/dashify.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/errorReportFrom.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/errorReportFrom.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/errorReportFrom.js +7 -4
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/errorReportFrom.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/index.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/index.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/index.js +5 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/index.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/outcomeReportFrom.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/outcomeReportFrom.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/ScenarioParametersDescriptor.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/ScenarioParametersDescriptor.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceEventQueueProcessor.d.ts +4 -3
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceEventQueueProcessor.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceEventQueueProcessor.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceReportContext.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceReportContext.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/index.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/index.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/index.js +5 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/index.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/index.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/index.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/index.js +5 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/index.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioOutlineOf.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioOutlineOf.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParameterResult.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParameterResult.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/sceneSequenceOverallResult.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/sceneSequenceOverallResult.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneEventQueueProcessor.d.ts +4 -3
- package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneEventQueueProcessor.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneEventQueueProcessor.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneReportContext.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneReportContext.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/index.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/index.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/index.js +5 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/index.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityFinished.d.ts +3 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityFinished.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityFinished.js +2 -2
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityFinished.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityRelatedArtifact.d.ts +3 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityRelatedArtifact.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityRelatedArtifact.js +3 -10
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityRelatedArtifact.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityStarted.d.ts +3 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityStarted.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityStarted.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/archivedActivityRelatedArtifact.d.ts +3 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/archivedActivityRelatedArtifact.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/archivedActivityRelatedArtifact.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedAt.d.ts +2 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedAt.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedAt.js +2 -2
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedAt.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedWith.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedWith.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionStartedAt.d.ts +2 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionStartedAt.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/index.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/index.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/index.js +5 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/index.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/reportIdIncluding.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/reportIdIncluding.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/scenarioDetailsOf.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/scenarioDetailsOf.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/scenarioDetailsOf.js +7 -4
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/scenarioDetailsOf.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/tagOf.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/tagOf.d.ts.map +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/tagOf.js +3 -9
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/tagOf.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/testRunnerCalled.d.ts +1 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/testRunnerCalled.d.ts.map +1 -0
- package/lib/stage/index.d.ts +1 -0
- package/lib/stage/index.d.ts.map +1 -0
- package/lib/stage/index.js +5 -1
- package/lib/stage/index.js.map +1 -1
- package/package.json +27 -50
- package/src/cli/commands/run.ts +23 -21
- package/src/cli/commands/update.ts +27 -25
- package/src/cli/defaults.ts +1 -1
- package/src/cli/io/axiosClient.ts +1 -2
- package/src/cli/io/formatError.ts +8 -1
- package/src/cli/model/ExecutionError.ts +0 -2
- package/src/cli/screenplay/abilities/UseFileSystem.ts +3 -6
- package/src/cli/screenplay/interactions/Spawn.ts +12 -22
- package/src/cli/screenplay/interactions/StreamResponse.ts +8 -18
- package/src/cli/screenplay/tasks/DownloadArtifact.ts +8 -18
- package/src/cli/screenplay/tasks/InvokeSerenityBDD.ts +8 -18
- package/src/cli/stage/NotificationReporter.ts +1 -1
- package/src/cli/stage/ProgressReporter.ts +1 -1
- package/src/index.ts +8 -0
- package/src/stage/crew/serenity-bdd-reporter/SerenityBDDReporter.ts +103 -75
- package/src/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessor.ts +4 -13
- package/src/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessors.ts +2 -2
- package/src/stage/crew/serenity-bdd-reporter/processors/index.ts +0 -1
- package/src/stage/crew/serenity-bdd-reporter/processors/mappers/errorReportFrom.ts +4 -4
- package/src/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceEventQueueProcessor.ts +3 -3
- package/src/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneEventQueueProcessor.ts +3 -3
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/activityFinished.ts +2 -1
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/activityRelatedArtifact.ts +6 -20
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/activityStarted.ts +2 -1
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/archivedActivityRelatedArtifact.ts +2 -1
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedAt.ts +1 -1
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/executionStartedAt.ts +1 -1
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/scenarioDetailsOf.ts +8 -4
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/tagOf.ts +4 -13
- package/tsconfig.build.json +10 -0
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueue.d.ts +0 -24
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueue.js +0 -33
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueue.js.map +0 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueues.d.ts +0 -18
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueues.js +0 -61
- package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueues.js.map +0 -1
- package/src/stage/crew/serenity-bdd-reporter/processors/EventQueue.ts +0 -40
- package/src/stage/crew/serenity-bdd-reporter/processors/EventQueues.ts +0 -74
- package/tsconfig.eslint.json +0 -10
package/README.md
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
# Serenity/JS
|
|
2
2
|
|
|
3
|
-
[Serenity/JS](https://serenity-js
|
|
4
|
-
|
|
3
|
+
[](https://www.linkedin.com/company/serenity-js)
|
|
4
|
+
[](https://www.youtube.com/@serenity-js)
|
|
5
|
+
[](https://matrix.to/#/#serenity-js:gitter.im)
|
|
6
|
+
[](https://github.com/sponsors/serenity-js)
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
[Serenity/JS](https://serenity-js.org) is an innovative framework designed to make acceptance and regression testing
|
|
9
|
+
of complex software systems faster, more collaborative and easier to scale.
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
To get started, check out the comprehensive [Serenity/JS Handbook](https://serenity-js.org/handbook), [API documentation](https://serenity-js.org/api/core), and [Serenity/JS project templates on GitHub](https://serenity-js.org/handbook/getting-started#serenityjs-project-templates).
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
If you have any questions, join us on [Serenity/JS Community Chat](https://gitter.im/serenity-js/Lobby).
|
|
14
|
-
|
|
15
|
-
[](https://www.youtube.com/watch?v=djPMf-n93Rw)
|
|
13
|
+
If you have any questions or just want to say hello, join the [Serenity/JS Community Chat](https://matrix.to/#/#serenity-js:gitter.im).
|
|
16
14
|
|
|
17
15
|
## Serenity BDD
|
|
18
16
|
|
|
@@ -34,31 +32,69 @@ npm install --save-dev @serenity-js/{core,serenity-bdd}
|
|
|
34
32
|
To allow Serenity/JS to produce Serenity BDD-standard JSON reports, assign the `SerenityBDDReporter` to the `Stage`
|
|
35
33
|
and configure the `ArtifactArchiver` to store the reports at the location where Serenity BDD expects to find them.
|
|
36
34
|
|
|
37
|
-
This can be done
|
|
35
|
+
This can be done:
|
|
36
|
+
- via `playwright.config.ts`, if you're using Serenity/JS with [Playwright Test](https://serenity-js.org/api/playwright-test)
|
|
37
|
+
- via `wdio.conf.ts`, if you're using Serenity/JS with [WebdriverIO](https://serenity-js.org/api/playwright-test)
|
|
38
|
+
- via `protractor.conf.js`, if you're using Serenity/JS with [Protractor](https://serenity-js.org/api/protractor)
|
|
39
|
+
- or programmatically.
|
|
38
40
|
|
|
39
|
-
####
|
|
41
|
+
#### Usage with Playwright Test
|
|
40
42
|
|
|
41
|
-
|
|
42
|
-
import { ArtifactArchiver, serenity } from '@serenity-js/core';
|
|
43
|
-
import { SerenityBDDReporter } from '@serenity-js/serenity-bdd';
|
|
43
|
+
Learn more about using [Serenity/JS with Playwright Test](https://serenity-js.org/api/playwright-test).
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
```typescript
|
|
46
|
+
// playwright.config.ts
|
|
47
|
+
import type { PlaywrightTestConfig } from '@serenity-js/playwright-test';
|
|
48
|
+
|
|
49
|
+
const config: PlaywrightTestConfig = {
|
|
50
|
+
reporter: [
|
|
51
|
+
[ '@serenity-js/playwright-test', {
|
|
52
|
+
crew: [
|
|
53
|
+
'@serenity-js/serenity-bdd',
|
|
54
|
+
[ '@serenity-js/core:ArtifactArchiver', { outputDirectory: 'target/site/serenity' } ],
|
|
55
|
+
]
|
|
56
|
+
}]
|
|
49
57
|
],
|
|
50
|
-
|
|
58
|
+
|
|
59
|
+
// Other configuration omitted for brevity
|
|
60
|
+
// For details, see https://playwright.dev/docs/test-configuration
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default config;
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
#### Usage with WebdriverIO
|
|
67
|
+
|
|
68
|
+
Learn more about using [Serenity/JS with WebdriverIO](https://serenity-js.org/api/webdriverio).
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
// wdio.conf.ts
|
|
72
|
+
|
|
73
|
+
import { WebdriverIOConfig } from '@serenity-js/webdriverio';
|
|
74
|
+
|
|
75
|
+
export const config: WebdriverIOConfig = {
|
|
76
|
+
|
|
77
|
+
framework: '@serenity-js/webdriverio',
|
|
78
|
+
|
|
79
|
+
serenity: {
|
|
80
|
+
crew: [
|
|
81
|
+
'@serenity-js/serenity-bdd',
|
|
82
|
+
[ '@serenity-js/core:ArtifactArchiver', { outputDirectory: 'target/site/serenity' } ],
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
// Other configuration omitted for brevity
|
|
87
|
+
// For details, see https://webdriver.io/docs/options
|
|
88
|
+
};
|
|
51
89
|
```
|
|
52
90
|
|
|
53
|
-
#### Protractor
|
|
91
|
+
#### Usage with Protractor
|
|
92
|
+
|
|
93
|
+
Learn more about using [Serenity/JS with Protractor](https://serenity-js.org/api/protractor).
|
|
54
94
|
|
|
55
95
|
```javascript
|
|
56
96
|
// protractor.conf.js
|
|
57
97
|
|
|
58
|
-
const
|
|
59
|
-
{ ArtifactArchiver } = require('@serenity-js/core'),
|
|
60
|
-
{ SerenityBDDReporter } = require('@serenity-js/serenity-bdd'),
|
|
61
|
-
|
|
62
98
|
exports.config = {
|
|
63
99
|
|
|
64
100
|
framework: 'custom',
|
|
@@ -66,8 +102,8 @@ exports.config = {
|
|
|
66
102
|
|
|
67
103
|
serenity: {
|
|
68
104
|
crew: [
|
|
69
|
-
|
|
70
|
-
|
|
105
|
+
'@serenity-js/serenity-bdd',
|
|
106
|
+
[ '@serenity-js/core:ArtifactArchiver', { outputDirectory: 'target/site/serenity' } ],
|
|
71
107
|
]
|
|
72
108
|
},
|
|
73
109
|
|
|
@@ -75,6 +111,22 @@ exports.config = {
|
|
|
75
111
|
}
|
|
76
112
|
```
|
|
77
113
|
|
|
114
|
+
#### Programmatic configuration
|
|
115
|
+
|
|
116
|
+
Learn more about [configuring Serenity/JS programmatically](https://serenity-js.org/api/core/class/SerenityConfig).
|
|
117
|
+
|
|
118
|
+
```typescript
|
|
119
|
+
import { ArtifactArchiver, configure } from '@serenity-js/core';
|
|
120
|
+
import { SerenityBDDReporter } from '@serenity-js/serenity-bdd';
|
|
121
|
+
|
|
122
|
+
configure({
|
|
123
|
+
crew: [
|
|
124
|
+
ArtifactArchiver.storingArtifactsAt('./target/site/serenity'),
|
|
125
|
+
new SerenityBDDReporter()
|
|
126
|
+
],
|
|
127
|
+
});
|
|
128
|
+
```
|
|
129
|
+
|
|
78
130
|
### Serenity BDD Living Documentation
|
|
79
131
|
|
|
80
132
|
To turn the Serenity BDD-standard JSON reports produced by the `SerenityBDDReporter` into Serenity BDD test reports,
|
|
@@ -103,7 +155,7 @@ serenity.project.name=My awesome project
|
|
|
103
155
|
```
|
|
104
156
|
|
|
105
157
|
Please note that the reporting CLI considers only those properties that are related to producing test reports.
|
|
106
|
-
Learn more about configuring [`serenity.properties`](https://serenity-bdd.github.io/
|
|
158
|
+
Learn more about configuring [`serenity.properties`](https://serenity-bdd.github.io/docs/reference/serenity-properties).
|
|
107
159
|
|
|
108
160
|
#### Downloading the Serenity BDD reporting CLI
|
|
109
161
|
|
|
@@ -237,23 +289,29 @@ npx serenity-bdd --help run
|
|
|
237
289
|
|
|
238
290
|
### Using NPM scripts
|
|
239
291
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
292
|
+
[Serenity BDD reports](https://serenity-js.org/handbook/reporting/serenity-bdd-reporter) are generated by [Serenity BDD CLI](https://github.com/serenity-bdd/serenity-core/tree/main/serenity-cli),
|
|
293
|
+
a Java program downloaded and managed by the [`@serenity-js/serenity-bdd`](https://serenity-js.org/api/serenity-bdd) module.
|
|
294
|
+
|
|
295
|
+
In general, to produce Serenity BDD reports, your test suite must:
|
|
296
|
+
- download the Serenity BDD CLI, by calling `serenity-bdd update`
|
|
297
|
+
- produce intermediate Serenity BDD `.json` reports, by registering [`SerenityBDDReporter`](https://serenity-js.org/api/serenity-bdd/class/SerenityBDDReporter)
|
|
298
|
+
- invoke the Serenity BDD CLI when you want to produce the report, by calling `serenity-bdd run`
|
|
243
299
|
|
|
244
|
-
|
|
300
|
+
The pattern used by all the [Serenity/JS Project Templates](https://serenity-js.org/handbook/getting-started#serenityjs-project-templates) relies
|
|
301
|
+
on using:
|
|
302
|
+
- an NPM [`postinstall`](https://docs.npmjs.com/cli/v9/using-npm/scripts#life-cycle-operation-order) script to download the Serenity BDD CLI
|
|
303
|
+
- [`npm-failsafe`](https://www.npmjs.com/package/npm-failsafe) to run the reporting process even if the test suite itself has failed (which is precisely when you need test reports the most...).
|
|
304
|
+
- [`rimraf`](https://www.npmjs.com/package/rimraf) as a convenience method to remove any test reports left over from the previous run
|
|
305
|
+
|
|
306
|
+
```json title="package.json"
|
|
245
307
|
{
|
|
246
308
|
"scripts": {
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"test
|
|
250
|
-
"test": "
|
|
251
|
-
|
|
252
|
-
}
|
|
253
|
-
// ... other config
|
|
309
|
+
"postinstall": "serenity-bdd update",
|
|
310
|
+
"clean": "rimraf target",
|
|
311
|
+
"test": "failsafe clean test:execute test:report",
|
|
312
|
+
"test:execute": "cucumber-js",
|
|
313
|
+
"test:report": "serenity-bdd run --features ./features ",
|
|
314
|
+
}
|
|
254
315
|
}
|
|
255
316
|
```
|
|
256
|
-
|
|
257
|
-
In the above example, the [`npm-failsafe`](https://www.npmjs.com/package/npm-failsafe) module is used to invoke
|
|
258
|
-
each of the `test:update-serenity`, `test:acceptance` and `test:report` scripts when `npm test` is executed.
|
|
259
|
-
This is to ensure that the Serenity BDD report is produced even when there is a test failure.
|
|
317
|
+
Note that in the above code sample, you should configure `test:execute` to invoke [your test runner of choice](https://serenity-js.org/handbook/test-runners/).
|
package/lib/cli/Argv.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Argv.d.ts","sourceRoot":"","sources":["../../src/cli/Argv.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,CAAE,GAAG,EAAE,MAAM,GAAI,MAAM,CAAC;CAC3B"}
|
package/lib/cli/Printer.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Printer.d.ts","sourceRoot":"","sources":["../../src/cli/Printer.ts"],"names":[],"mappings":";AAEA;;GAEG;AACH,qBAAa,OAAO;aAGI,GAAG,EAAE,MAAM,CAAC,cAAc;aAC1B,GAAG,EAAE,MAAM,CAAC,cAAc;gBAD1B,GAAG,EAAE,MAAM,CAAC,cAAc,EAC1B,GAAG,EAAE,MAAM,CAAC,cAAc;IAI9C,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAG/B"}
|
package/lib/cli/bootstrap.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @package
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type Interceptor = (error: Error, parsed: {
|
|
10
10
|
[key: string]: string | number;
|
|
11
11
|
}, output: string) => void;
|
|
12
12
|
/**
|
|
@@ -20,3 +20,4 @@ export declare type Interceptor = (error: Error, parsed: {
|
|
|
20
20
|
* @package
|
|
21
21
|
*/
|
|
22
22
|
export declare function bootstrap(argv: string[], interceptor?: Interceptor): void;
|
|
23
|
+
//# sourceMappingURL=bootstrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/cli/bootstrap.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;AAE7G;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAYzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/run.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA0DL,IAAI,KAAG,QAAQ,IAAI,CAAC;;AAhD9C,kBAmFE"}
|
package/lib/cli/commands/run.js
CHANGED
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
const core_1 = require("@serenity-js/core");
|
|
3
26
|
const io_1 = require("@serenity-js/core/lib/io");
|
|
4
|
-
const path = require("path"); // eslint-disable-line unicorn/import-style
|
|
27
|
+
const path = __importStar(require("path")); // eslint-disable-line unicorn/import-style
|
|
5
28
|
const defaults_1 = require("../defaults");
|
|
6
29
|
const io_2 = require("../io");
|
|
7
30
|
const model_1 = require("../model");
|
|
@@ -57,7 +80,7 @@ module.exports = {
|
|
|
57
80
|
describe: `A Logback log level to pass to the Serenity BDD CLI jar`,
|
|
58
81
|
},
|
|
59
82
|
},
|
|
60
|
-
handler: (argv) => {
|
|
83
|
+
handler: async (argv) => {
|
|
61
84
|
const printer = new Printer_1.Printer(process.stdout, process.stderr), artifactGAV = model_1.GAV.fromString(argv.artifact), pathToArtifact = new io_1.Path(argv.cacheDir).join(artifactGAV.toPath()), moduleRoot = path.resolve(__dirname, '../../../');
|
|
62
85
|
(0, core_1.configure)({
|
|
63
86
|
actors: new stage_1.RunCommandActors(new io_1.Path(process.cwd())),
|
|
@@ -66,18 +89,21 @@ module.exports = {
|
|
|
66
89
|
new stage_1.ProgressReporter(printer),
|
|
67
90
|
],
|
|
68
91
|
});
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
92
|
+
const actor = (0, core_1.actorCalled)('Serenity/JS Reporter');
|
|
93
|
+
try {
|
|
94
|
+
await actor.attemptsTo(screenplay_1.InvokeSerenityBDD.at(pathToArtifact)
|
|
95
|
+
.withProperties(screenplay_1.SystemProperties.of({
|
|
96
|
+
'serenity.compress.filenames': `${argv.shortFilenames}`,
|
|
97
|
+
'LOG_LEVEL': argv.log,
|
|
98
|
+
'logback.configurationFile': path.resolve(moduleRoot, './resources/logback.config.xml'),
|
|
99
|
+
}))
|
|
100
|
+
.withArguments(screenplay_1.SerenityBDDArguments.from(argv)));
|
|
101
|
+
await actor.dismiss();
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
78
104
|
printer.error((0, io_2.formatError)(error));
|
|
79
105
|
yargs.exit(1, error.message);
|
|
80
|
-
}
|
|
106
|
+
}
|
|
81
107
|
},
|
|
82
108
|
};
|
|
83
109
|
//# sourceMappingURL=run.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/cli/commands/run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/cli/commands/run.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA2D;AAC3D,iDAAgD;AAChD,2CAA6B,CAAG,2CAA2C;AAG3E,0CAAuC;AACvC,8BAAoC;AACpC,oCAA+B;AAC/B,wCAAqC;AACrC,8CAA0F;AAC1F,oCAAoF;AAEpF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,yDAAyD;AAEzF,iBAAS;IACL,OAAO,EAAE,KAAK;IACd,IAAI,EAAE,0GAA0G;IAChH,OAAO,EAAE;QACL,QAAQ,EAAE;YACN,OAAO,EAAI,mBAAQ,CAAC,QAAQ;YAC5B,QAAQ,EAAE,kEAAkE;SAC/E;QACD,WAAW,EAAE;YACT,OAAO,EAAI,mBAAQ,CAAC,SAAS;YAC7B,QAAQ,EAAE,mFAAmF;SAChG;QACD,QAAQ,EAAE;YACN,OAAO,EAAI,mBAAQ,CAAC,WAAW;YAC/B,QAAQ,EAAE,2EAA2E;SACxF;QACD,QAAQ,EAAE;YACN,OAAO,EAAI,mBAAQ,CAAC,QAAQ;YAC5B,QAAQ,EAAE,oIAAoI;SACjJ;QACD,MAAM,EAAE;YACJ,OAAO,EAAI,mBAAQ,CAAC,SAAS;YAC7B,QAAQ,EAAE,0EAA0E;SACvF;QACD,eAAe,EAAE;YACb,QAAQ,EAAE,6CAA6C;SAC1D;QACD,WAAW,EAAE;YACT,QAAQ,EAAE,yBAAyB;SACtC;QACD,OAAO,EAAE;YACL,QAAQ,EAAE,8BAA8B;SAC3C;QACD,OAAO,EAAE;YACL,OAAO,E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W,EAAE,IAAI,CAAC,GAAG;gBACrB,2BAA2B,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,gCAAgC,CAAC;aAC1F,CAAC,CAAC;iBACF,aAAa,CAAC,iCAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CACtD,CAAC;YACF,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;SACzB;QACD,OAAO,KAAK,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,IAAA,gBAAW,EAAC,KAAK,CAAC,CAAC,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;SAChC;IACL,CAAC;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/update.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;oBAmCL,IAAI,KAAG,QAAQ,IAAI,CAAC;;AAzB9C,kBAkEE"}
|
|
@@ -35,26 +35,29 @@ module.exports = {
|
|
|
35
35
|
describe: `The GAV identifier of the Serenity BDD CLI artifact to use; You're best off with the default option unless you want to experiment.`,
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
-
handler: (argv) => {
|
|
38
|
+
handler: async (argv) => {
|
|
39
39
|
const printer = new Printer_1.Printer(process.stdout, process.stderr), artifactGAV = model_1.GAV.fromString(argv.artifact), pathToArtifact = new io_1.Path(argv.cacheDir).join(artifactGAV.toPath()), repository = new url_1.URL(argv.repository);
|
|
40
40
|
(0, core_1.configure)({
|
|
41
|
-
actors: new stage_1.UpdateCommandActors(new io_1.Path(process.cwd()), () => (0, io_2.axiosClient)(repository,
|
|
41
|
+
actors: new stage_1.UpdateCommandActors(new io_1.Path(process.cwd()), () => (0, io_2.axiosClient)(repository, Boolean(argv.ignoreSSL), process.env, model_1.Credentials.fromString(argv.auth))),
|
|
42
42
|
crew: [
|
|
43
43
|
new stage_1.NotificationReporter(printer),
|
|
44
44
|
new stage_1.ProgressReporter(printer),
|
|
45
45
|
],
|
|
46
46
|
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
const actor = (0, core_1.actorCalled)('Serenity/JS Updater');
|
|
48
|
+
try {
|
|
49
|
+
await (0, core_1.actorCalled)('Serenity/JS Updater').attemptsTo(core_1.Check.whether(screenplay_1.FileExists.at(pathToArtifact), (0, assertions_1.isTrue)())
|
|
50
|
+
.andIfSo(screenplay_1.Notify.that(`Looks like you're good to go! Serenity BDD CLI is already at ${pathToArtifact.value}`))
|
|
51
|
+
.otherwise(screenplay_1.DownloadArtifact
|
|
52
|
+
.identifiedBy(artifactGAV)
|
|
53
|
+
.availableFrom(repository)
|
|
54
|
+
.to(pathToArtifact.directory())));
|
|
55
|
+
await actor.dismiss();
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
55
58
|
printer.error((0, io_2.formatError)(error));
|
|
56
59
|
yargs.exit(1, error.message);
|
|
57
|
-
}
|
|
60
|
+
}
|
|
58
61
|
},
|
|
59
62
|
};
|
|
60
63
|
//# sourceMappingURL=update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/cli/commands/update.ts"],"names":[],"mappings":";AAAA,wDAAiD;AACjD,4CAAkE;AAClE,iDAAgD;AAChD,6BAA0B;AAG1B,0CAAuC;AACvC,8BAAiD;AACjD,oCAA4C;AAC5C,wCAAqC;AACrC,8CAAqE;AACrE,oCAAuF;AAEvF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,yDAAyD;AAEzF,iBAAS;IACL,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,sEAAsE;IAC5E,OAAO,EAAE;QACL,QAAQ,EAA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AAc,CAAC,SAAS,EAAE,CAAC,CACtC,CACR,CAAC;YACF,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;SACzB;QACD,OAAO,KAAK,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,IAAA,gBAAW,EAAC,KAAK,CAAC,CAAC,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;SAChC;IACL,CAAC;CACJ,CAAC"}
|
package/lib/cli/defaults.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/cli/defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;CAQpB,CAAC"}
|
package/lib/cli/defaults.js
CHANGED
|
@@ -18,7 +18,7 @@ exports.defaults = void 0;
|
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
20
|
exports.defaults = {
|
|
21
|
-
artifact: 'net.serenity-bdd:serenity-cli:jar:
|
|
21
|
+
artifact: 'net.serenity-bdd:serenity-cli:jar:3.1.0',
|
|
22
22
|
repository: 'https://repo1.maven.org/maven2/',
|
|
23
23
|
cacheDir: 'node_modules/@serenity-js/serenity-bdd/cache',
|
|
24
24
|
sourceDir: 'target/site/serenity',
|
package/lib/cli/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,SAAS,SAAS,CAAC"}
|
|
@@ -12,8 +12,9 @@ export declare function axiosClient(repository: URL, ignoreSsl: boolean, env: {
|
|
|
12
12
|
* @package
|
|
13
13
|
*/
|
|
14
14
|
export declare function shouldProxy(url: URL, configuredProxy: EnvVar, configuredNoProxy: EnvVar): boolean;
|
|
15
|
-
|
|
15
|
+
type EnvVar = {
|
|
16
16
|
name?: string;
|
|
17
17
|
value?: string;
|
|
18
18
|
};
|
|
19
19
|
export {};
|
|
20
|
+
//# sourceMappingURL=axiosClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axiosClient.d.ts","sourceRoot":"","sources":["../../../src/cli/io/axiosClient.ts"],"names":[],"mappings":";AACA,OAAc,EAAE,aAAa,EAAwC,MAAM,OAAO,CAAC;AAGnF,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC;;GAEG;AACH,wBAAgB,WAAW,CACvB,UAAU,EAAE,GAAG,EACf,SAAS,EAAE,OAAO,EAClB,GAAG,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EAC9B,cAAc,CAAC,EAAE,WAAW,GAC7B,aAAa,CAmCf;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAuBjG;AAkED,KAAK,MAAM,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -1,11 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
exports.shouldProxy = exports.axiosClient = void 0;
|
|
4
30
|
const core_1 = require("@serenity-js/core");
|
|
5
|
-
const axios_1 = require("axios");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const https = require("https");
|
|
31
|
+
const axios_1 = __importDefault(require("axios"));
|
|
32
|
+
const fs = __importStar(require("fs"));
|
|
33
|
+
const https = __importStar(require("https"));
|
|
9
34
|
const url_1 = require("url");
|
|
10
35
|
const HttpsProxyAgent = require('https-proxy-agent'); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
11
36
|
/**
|
|
@@ -20,7 +45,7 @@ function axiosClient(repository, ignoreSsl, env, repositoryAuth) {
|
|
|
20
45
|
const rejectUnauthorized = shouldRejectUnauthorizedCertificates(env, ignoreSsl);
|
|
21
46
|
const options = {
|
|
22
47
|
baseURL: repository.toString(),
|
|
23
|
-
adapter:
|
|
48
|
+
adapter: ['http'],
|
|
24
49
|
auth: repositoryAuth,
|
|
25
50
|
};
|
|
26
51
|
if (isHttps(repository.protocol)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axiosClient.js","sourceRoot":"","sources":["../../../src/cli/io/axiosClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"axiosClient.js","sourceRoot":"","sources":["../../../src/cli/io/axiosClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAuD;AACvD,kDAAmF;AACnF,uCAAyB;AACzB,6CAA+B;AAC/B,6BAA0B;AAI1B,MAAM,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAG,yDAAyD;AAEjH;;GAEG;AACH,SAAgB,WAAW,CACvB,UAAe,EACf,SAAkB,EAClB,GAA8B,EAC9B,cAA4B;IAG5B,MAAM,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;QAChD,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE,wBAAwB,EAAE,aAAa,EAAE,aAAa,CAAC;QAC5E,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IAElG,MAAM,iBAAiB,GAAG,aAAa,CAAC,GAAG,EAAE,oBAAoB,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IAE3F,MAAM,YAAY,GAAG,sBAAsB,CAAC,GAAG,CAAC,CAAC;IAEjD,MAAM,kBAAkB,GAAG,oCAAoC,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAEhF,MAAM,OAAO,GAAuB;QAChC,OAAO,EAAK,UAAU,CAAC,QAAQ,EAAE;QACjC,OAAO,EAAK,CAAE,MAAM,CAAE;QACtB,IAAI,EAAQ,cAAc;KAC7B,CAAC;IAEF,IAAI,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC9B,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;QACtB,OAAO,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,EAAE,eAAe,EAA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;IACzC,OAAO,CAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAE;SAC7C,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC;AACnD,CAAC;AAED,SAAS,OAAO,CAAC,aAAqB;IAClC,OAAO,aAAa;WACb,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatError.d.ts","sourceRoot":"","sources":["../../../src/cli/io/formatError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,GAAG,KAAK,GAAG,MAAM,CAwC/D"}
|
|
@@ -6,12 +6,14 @@ const core_1 = require("@serenity-js/core");
|
|
|
6
6
|
* @package
|
|
7
7
|
*/
|
|
8
8
|
function formatError(error) {
|
|
9
|
-
const learnMore = `Learn more at https://serenity-js.org/
|
|
9
|
+
const learnMore = `Learn more at https://serenity-js.org/handbook/reporting/serenity-bdd-reporter`;
|
|
10
10
|
switch (true) {
|
|
11
11
|
case /ETIMEDOUT/.test(error.message):
|
|
12
12
|
return lines(`Are you behind a proxy or a firewall that needs to be configured?`, ...messages(error), '', learnMore);
|
|
13
13
|
case /self signed certificate in certificate chain/.test(error.message):
|
|
14
14
|
return lines(`If you're using a self-signed certificate please check if it's configured correctly or use the --ignoreSSL option.`, '', learnMore);
|
|
15
|
+
case /"path" argument must be of type string/.test(error.message):
|
|
16
|
+
return lines(`Serenity BDD requires a Java Runtime Environment, please make sure you have Java installed.`, '', learnMore);
|
|
15
17
|
case error instanceof core_1.RuntimeError:
|
|
16
18
|
return lines(...messages(error), '', learnMore);
|
|
17
19
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatError.js","sourceRoot":"","sources":["../../../src/cli/io/formatError.ts"],"names":[],"mappings":";;;AAAA,4CAAiD;AAEjD;;GAEG;AACH,SAAgB,WAAW,CAAC,KAA2B;IAEnD,MAAM,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"formatError.js","sourceRoot":"","sources":["../../../src/cli/io/formatError.ts"],"names":[],"mappings":";;;AAAA,4CAAiD;AAEjD;;GAEG;AACH,SAAgB,WAAW,CAAC,KAA2B;IAEnD,MAAM,SAAS,GAAG,gFAAgF,CAAC;IAEnG,QAAQ,IAAI,EAAE;QACV,KAAK,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YAChC,OAAO,KAAK,CACR,mEAAmE,EACnE,GAAG,QAAQ,CAAC,KAAK,CAAC,EAClB,EAAE,EACF,SAAS,CACZ,CAAC;QAEN,KAAK,8CAA8C,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YACnE,OAAO,KAAK,CACR,oHAAoH,EACpH,EAAE,EACF,SAAS,CACZ,CAAC;QAEN,KAAK,wCAAwC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YAC7D,OAAO,KAAK,CACR,6FAA6F,EAC7F,EAAE,EACF,SAAS,CACZ,CAAC;QAEN,KAAK,KAAK,YAAY,mBAAY;YAC9B,OAAO,KAAK,CACR,GAAG,QAAQ,CAAC,KAAK,CAAC,EAClB,EAAE,EACF,SAAS,CACZ,CAAC;QAEN;YACI,OAAO,KAAK,CACR,gEAAgE,EAChE,GAAG,QAAQ,CAAC,KAAK,CAAC,CACrB,CAAC;KACT;AACL,CAAC;AAxCD,kCAwCC;AAED,SAAS,QAAQ,CAAC,KAA2B,EAAE,MAAgB,EAAE;IAC7D,OAAO,KAAK,CAAC,OAAO,IAAK,KAAsB,CAAC,KAAK;QACjD,CAAC,CAAC,QAAQ,CAAE,KAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACpE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,IAAI,GAAI,KAAM,EAAE,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,KAAK,CAAC,GAAG,OAAiB;IAC/B,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC"}
|
package/lib/cli/io/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/io/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
package/lib/cli/io/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/cli/io/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/io/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/io/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Complaint.d.ts","sourceRoot":"","sources":["../../../src/cli/model/Complaint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,QAAQ;IACnC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS;CAK9F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Credentials.d.ts","sourceRoot":"","sources":["../../../src/cli/model/Credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEzD;;GAEG;AACH,qBAAa,WAAY,SAAQ,QAAQ;aAkBjB,QAAQ,EAAE,MAAM;aAChB,QAAQ,EAAE,MAAM;IAjBpC,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW;gBAgBzB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM;CAIvC"}
|