Я знаю, что это наиболее распространенная проблема с Testcafe, но я ранее публиковал вопросы, и решения не совпадают / не помогают решить мою проблему. Testcafe версии 1.8.4 с отчетами о соблазнении. Я настроил несколько тестовых наборов, работающих последовательно в моем проекте, но после первого запуска набора Testcafe завершается со следующей ошибкой и прерывает тестовый запуск.
npm ERR! code ELIFECYCLE
npm ERR! errno 4
npm ERR! user-journey-tests@1.0.0 test:appjourneys:azure: `TARGET_ENV=test DATA_CENTER=azwus2 testcafe 'chromium:headless:emulation' './journeys/app-journeys/*-spec.js' -r allure`
npm ERR! Exit status 4
npm ERR!
npm ERR! Failed at the user-journey-tests@1.0.0 test:appjourneys:azure script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Venkat/.npm/_logs/2020-05-27T03_13_43_108Z-debug.log
Below is the debug log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/local/Cellar/node/12.10.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'test:appjourneys:azure'
1 verbose cli ]
2 info using npm@6.11.3
3 info using node@v12.10.0
4 verbose run-script [
4 verbose run-script 'pretest:appjourneys:azure',
4 verbose run-script 'test:appjourneys:azure',
4 verbose run-script 'posttest:appjourneys:azure'
4 verbose run-script ]
5 info lifecycle user-journey-tests@1.0.0~pretest:appjourneys:azure: user-journey-tests@1.0.0
6 info lifecycle user-journey-tests@1.0.0~test:appjourneys:azure: user-journey-tests@1.0.0
7 verbose lifecycle user-journey-tests@1.0.0~test:appjourneys:azure: unsafe-perm in lifecycle true
8 verbose lifecycle user-journey-tests@1.0.0~test:appjourneys:azure: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/Venkat/GAP/store-service/user-journeys-testcafe/node_modules/.bin:/usr/local/Cellar/maven/3.6.0/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Cellar/maven/3.6.0/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin
9 verbose lifecycle user-journey-tests@1.0.0~test:appjourneys:azure: CWD: /Users/Venkat/GAP/store-service/user-journeys-testcafe
10 silly lifecycle user-journey-tests@1.0.0~test:appjourneys:azure: Args: [
10 silly lifecycle '-c',
10 silly lifecycle "TARGET_ENV=test DATA_CENTER=azwus2 testcafe 'chromium:headless:emulation' './journeys/app-journeys/*-spec.js' -r allure"
10 silly lifecycle ]
11 silly lifecycle user-journey-tests@1.0.0~test:appjourneys:azure: Returned: code: 4 signal: null
12 info lifecycle user-journey-tests@1.0.0~test:appjourneys:azure: Failed to exec test:appjourneys:azure script
13 verbose stack Error: user-journey-tests@1.0.0 test:appjourneys:azure: `TARGET_ENV=test DATA_CENTER=azwus2 testcafe 'chromium:headless:emulation' './journeys/app-journeys/*-spec.js' -r allure`
13 verbose stack Exit status 4
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:209:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:209:13)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid user-journey-tests@1.0.0
15 verbose cwd /Users/Venkat/GAP/store-service/user-journeys-testcafe
16 verbose Darwin 17.7.0
17 verbose argv "/usr/local/Cellar/node/12.10.0/bin/node" "/usr/local/bin/npm" "run" "test:appjourneys:azure"
18 verbose node v12.10.0
19 verbose npm v6.11.3
20 error code ELIFECYCLE
21 error errno 4
22 error user-journey-tests@1.0.0 test:appjourneys:azure: `TARGET_ENV=test DATA_CENTER=azwus2 testcafe 'chromium:headless:emulation' './journeys/app-journeys/*-spec.js' -r allure`
22 error Exit status 4
23 error Failed at the user-journey-tests@1.0.0 test:appjourneys:azure script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 4, true ]
Я пробовал следующее:
npm -clean install
обновить testcafe до последней версии 1.8.4 3.
Я объединил свой пакет в на один-единственный npm запустить <cmd>
- это помогает запускать тесты, но по-прежнему ошибка продолжает появляться в конце, а статус сборки нестабилен. Есть мысли, как это преодолеть?