Skip to content

Commit bdb7f61

Browse files
authored
Add debug logging to start of run
1 parent 1901ec8 commit bdb7f61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/api/run_cucumber.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { EventDataCollector } from '../formatter/helpers'
44
import { emitMetaMessage, emitSupportCodeMessages } from '../cli/helpers'
55
import { resolvePaths } from '../paths'
66
import { SupportCodeLibrary } from '../support_code_library_builder/types'
7+
import { version } from '../version'
78
import { IRunOptions, IRunEnvironment, IRunResult } from './types'
89
import { makeRuntime } from './runtime'
910
import { initializeFormatters } from './formatters'
@@ -28,6 +29,11 @@ export async function runCucumber(
2829
const mergedEnvironment = mergeEnvironment(environment)
2930
const { cwd, stdout, stderr, env, logger } = mergedEnvironment
3031

32+
logger.debug(`Running cucumber-js ${version}
33+
Working directory: ${cwd}
34+
Running from: ${__dirname}
35+
`)
36+
3137
const newId = IdGenerator.uuid()
3238

3339
const supportCoordinates =

0 commit comments

Comments
 (0)