webdriverio: [🐛 Bug]: @wdio/config:ConfigParser: pattern src/test/specs/03.1_WinApp_suite.ts did not match any file

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

8

Node.js Version

latest

Mode

Standalone Mode

Which capabilities are you using?

[{
      port: 4723,
      path: '/',
      app: "C:\\Program Files (x86)\\Evernote\\evernote",
      platformName: "Windows",
      platformVersion: '11',
      "waitForAppLaunch": "30"
    }]

What happened?

Console is throwing errors after migrating to V8 ,

WARN @wdio/config:ConfigParser: pattern src/test/specs/03.1_WinApp_suite.ts did not match any file

2022-12-02T22:09:45.864Z ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook Error: Appium exited before timeout (exit code: 9)

What is your expected behavior?

Should be able to launch the instance and execute the test

How to reproduce the bug.

  • update to latest v8, just inclus appium service

import caps from “…/utils/caps” import { config } from ‘./shared.conf’

exports.config = { …config, …{

    specs: [
    'src/test/specs/03.1_WinApp_suite.ts',
    ],
    capabilities: caps.DesktopApp,
    services: [['appium',{
        args: {
            debugLogSpacing: true,
            sessionOverride: true,
            address: 'localhost'
            
        }}
    ]]
}

}

Relevant log output

`> wdio-framework@1.0.0 DesktopApp-Test
> npm run cleanReport && npx wdio run src/test/config/desktopApp.conf.ts


> wdio-framework@1.0.0 cleanReport
> if exist report rmdir report /q /s

2022-12-02T22:0[9](https://github.com/amrsa1/wido-ultimate/actions/runs/3605418305/jobs/6075796928#step:8:10):45.669Z WARN @wdio/config:ConfigParser: pattern src/test/specs/03.1_WinApp_suite.ts did not match any file

Execution of 0 workers started at 2022-[12](https://github.com/AA/wido-ultimate/actions/runs/3605418305/jobs/6075796928#step:8:13)-02T22:09:45.672Z

2022-12-02T22:09:45.697Z DEBUG @wdio/utils:initialiseServices: initialise service "appium" as NPM package
2022-12-02T22:09:45.714Z INFO @wdio/cli:launcher: Run onPrepare hook
2022-12-02T22:09:45.718Z DEBUG @wdio/appium-service: Will spawn Appium process: cmd /c node --base-path / --debug-log-spacing --session-override --address localhost file:///D:/a/wido-ultimate/wido-ultimate/node_modules/appium/build/lib/main.js
2022-12-02T22:09:45.864Z ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook
Error: Appium exited before timeout (exit code: 9)
2022-12-02T22:09:45.864Z DEBUG @wdio/cli:utils: Finished to run "onPrepare" hook in 150ms
    at ChildProcess.<anonymous> (file:///D:/a/wido-ultimate/wido/node_modules/@wdio/appium-service/build/launcher.js:114:22)
    at Object.onceWrapper (node:events:628:26)
    at ChildProcess.emit (node:events:5[13](https://github.com/amrsa1/wido-ultimate/actions/runs/3605418305/jobs/6075796928#step:8:14):28)
    at ChildProcess.emit (node:domain:489:12)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)

Continue...
[20](https://github.com/amrsa1/wido/actions/runs/3605418305/jobs/6075796928#step:8:21)[22](https://github.com/amrsa1/wido/actions/runs/3605418305/jobs/6075796928#step:8:23)-12-02T22:09:45.865Z WARN @wdio/config:ConfigParser: pattern src/test/specs/03.1_WinApp_suite.ts did not match any file
2022-12-02T22:09:45.868Z ERROR @wdio/cli:launcher: No specs found to run, exiting with failure
2022-12-02T22:09:45.869Z INFO @wdio/cli:launcher: Run onComplete hook
2022-12-02T22:09:45.869Z DEBUG @wdio/cli:utils: Finished to run "onComplete" hook in 0ms

Spec Files:	 0 passed, 0 total (0% completed) in 00:00:00 

2022-12-02T22:09:45.870Z INFO @wdio/local-runner: Shutting down spawned worker
2022-12-02T22:09:46.1[30](https://github.com/amrsa1/wido-ultimate/actions/runs/3605418305/jobs/6075796928#step:8:31)Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2022-12-02T22:09:46.130Z INFO @wdio/local-runner: shutting down`

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

There are still some issues with Windows and TypeScript that we are looking at in #9334. Feel free to get involved helping on solutions.

Changing the path in the config to '../specs/03.1_WinApp_Suite.ts', made it work for me.