MCPcopy
hub / github.com/codeceptjs/CodeceptJS / initializeCodecept

Function initializeCodecept

lib/workers.js:30–37  ·  view source on GitHub ↗
(configPath, options = {})

Source from the content-addressed store, hash-verified

28const pathToWorker = path.join(__dirname, 'command', 'workers', 'runTests.js')
29
30const initializeCodecept = async (configPath, options = {}) => {
31 const config = await mainConfig.load(configPath || '.')
32 const codecept = new Codecept(config, { ...options, skipDefaultListeners: true })
33 await codecept.init(getTestRoot(configPath))
34 codecept.loadTests()
35
36 return codecept
37}
38
39const createOutputDir = async configPath => {
40 const config = await mainConfig.load(configPath || '.')

Callers 1

constructorMethod · 0.85

Calls 4

initMethod · 0.95
loadTestsMethod · 0.95
getTestRootFunction · 0.90
loadMethod · 0.45

Tested by

no test coverage detected