Skip to content

Commit

Permalink
Add debug logging to start of run
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss authored May 26, 2024
1 parent 1901ec8 commit bdb7f61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/api/run_cucumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 =
Expand Down

0 comments on commit bdb7f61

Please sign in to comment.