marcellourbani / vscode-wdio

WebdriverIO test runner for visual studio code
MIT License
5 stars 0 forks source link

failed load WDIO configuration:Expecting string at name but instead got: undefined #11

Closed g-kozinets closed 1 year ago

g-kozinets commented 1 year ago

Hi, thank you for fixing previous issues, but now I've got a new one) When I use my config file, I get this error:

failed load WDIO configuration:Expecting string at name but instead got: undefined

Config file:

exports.config = {
    hostname: '0.0.0.0',
    path: '/wd/hub',
    port: 4723,
    specs: [
        './test/specs/**/*.js'
    ],
    maxInstances: 1,
    capabilities: [{
        "platformName": "Android",
        "appium:platformVersion": "13",
        "appium:deviceName": "Pixel_3a_API_33_x86_64",
        "appium:automationName": "UIAutomator2",
        "appium:app": "C:/Users/User/Downloads/Android-NativeDemoApp-0.4.0.apk",
        "appium:appWaitActivity": "com.wdiodemoapp.MainActivity",
        'appium:newCommandTimeout': 240
    }],

    logLevel: 'debug',
    waitforTimeout: 45000,

    connectionRetryTimeout: 120000,

    connectionRetryCount: 3,

    framework: 'mocha',

    reporters: ['spec'],

    mochaOpts: {
        ui: 'bdd',
        timeout: 60000
    }
}
marcellourbani commented 1 year ago

Almost surely was not the config file, but your package.json lacking mandatory field name. Anyway latest version should work now

marcellourbani commented 1 year ago

@g-kozinets is it working now?