어제와 오늘은 테스트를 실행하려고합니다 (Chimp /). 여기에 침팬지 구성이 있습니다 :침팬지 테스트가 작동하지 않고 오류가 발생했습니다 : 누락되었거나 유효하지 않은 'entry.level'
module.exports = {
// - - - - CHIMP - - - -
watch: false,
watchWithPolling: false,
sync: true,
// - - - - WEBDRIVER-IO - - - -
webdriverio: {
coloredLogs: true,
logLevel: 'silent',
screenshotPath: './tests/logs/screenshots',
waitforTimeout: 20000,
waitforInterval: 250
},
// - - - - MOCHA - - - -
mocha: true,
mochaConfig: {
timeout: 20000,
},
chai: true,
// path: './tests/spec',
path: './tests/spec/shop/configurator/products',
format: 'dot',
// - - - - SELENIUM - - - -
browser: 'chrome',
platform: 'ANY',
name: '',
user: '',
key: '',
port: null,
host: null,
// - - - - METEOR - - - -
ddp: 'http://localhost:3000',
serverExecuteTimeout: 20000,
// - - - - PHANTOM - - - -
phantom_w: 1920,
phantom_h: 1280
};
여기 첫 번째 테스트가 시작되기도 전에 보고서 출력이 실패합니다.
[chimp] Running...
Configurator @watch
1) "before all" hook
0 passing (10s)
1 failing
1) Configurator @watch "before all" hook:
Uncaught unknown error: cannot determine loading status
from unknown error: missing or invalid 'entry.level'
browserstack에서 실행하면 작동합니다. 나는 그것이, node_modules를 다시 설치, 침팬지 (0.50.2)를 업데이트 파이어 폭스로 실행하는 것이었다 해결하기 위해 노력 무엇
var browserstack = require('browserstack-local');
var bs_local = new browserstack.Local();
var bs_local_args = {/* ... */};
// starts the Local instance with the required arguments
bs_local.start(bs_local_args, function() {
console.log("Started BrowserStackLocal");
});
module.exports = {
// - - - - CHIMP - - - -
watch: false,
watchWithPolling: false,
sync: true,
// - - - - WEBDRIVER-IO - - - -
webdriverio: {
baseUrl: 'http://localhost:3000',
coloredLogs: true,
desiredCapabilities: {
os: 'OS X',
os_version: 'El Capitan',
browser: 'Chrome',
browser_version: '58.0',
resolution: '1280x1024',
project: 'project',
build: 'build',
'browserstack.local': true
},
logLevel: 'silent',
screenshotPath: './tests/logs/screenshots',
waitforTimeout: 50000,
waitforInterval: 250
},
// - - - - MOCHA - - - -
mocha: true,
mochaConfig: {
timeout: 60001,
},
chai: true,
path: './tests/spec',
format: 'dots',
// - - - - Screenshots - - - -
screenshotsOnError: true,
screenshotPath: './tests/logs/screenshots',
captureAllStepScreenshots: false,
saveScreenshotsToDisk: true,
saveScreenshotsToReport: false,
// - - - - SELENIUM - - - -
name: 'project',
browser: 'Chrome',
user: '...',
key: '...',
host: 'hub.browserstack.com',
port: 80,
// - - - - METEOR - - - -
ddp: 'http://localhost:3000',
serverExecuteTimeout: 30000,
// - - - - PHANTOM - - - -
phantom_w: 1280,
phantom_h: 1024
};
는 아무것도 할 수 없습니다 : 여기 browserstack 구성입니다. 나는 다른 환경 (OS/우분투 16.04)에서 그것을 시도하고 결과는 동일합니다.