From bdb7f61f6945b2183596e6c022afa5b38d952554 Mon Sep 17 00:00:00 2001 From: davidjgoss Date: Sun, 26 May 2024 09:57:01 +0100 Subject: [PATCH] Add debug logging to start of run --- src/api/run_cucumber.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/api/run_cucumber.ts b/src/api/run_cucumber.ts index 599f49c65..0d86a0bb1 100644 --- a/src/api/run_cucumber.ts +++ b/src/api/run_cucumber.ts @@ -4,6 +4,7 @@ import { EventDataCollector } from '../formatter/helpers' import { emitMetaMessage, emitSupportCodeMessages } from '../cli/helpers' import { resolvePaths } from '../paths' import { SupportCodeLibrary } from '../support_code_library_builder/types' +import { version } from '../version' import { IRunOptions, IRunEnvironment, IRunResult } from './types' import { makeRuntime } from './runtime' import { initializeFormatters } from './formatters' @@ -28,6 +29,11 @@ export async function runCucumber( const mergedEnvironment = mergeEnvironment(environment) const { cwd, stdout, stderr, env, logger } = mergedEnvironment + logger.debug(`Running cucumber-js ${version} +Working directory: ${cwd} +Running from: ${__dirname} +`) + const newId = IdGenerator.uuid() const supportCoordinates =