Julia Pottinger
0

Resolving errors in WebdriverIO - 'no test specified' | 'missing )'

June 23, 2020

The errors ‘echo error no test specified && exit 1’ and ‘missing ) after argument list’ sometimes occur when running your WedbriverIO tests with npm run test.

If you get that error after running your test first check that the test script in your package.json has the correct command.

Check that you are not actually echoing out that error. echoError

If you are change what is in your test script to

"test": "wdio",

and run your test again. Ensure that you have a wdio.conf.js file with the correct path to your specs.

You can also try

node ./node_modules/.bin/wdio ./wdio.conf.js

firstNodeCommand

Be sure verify that the path to your specs in your wdio.conf file is correct.

correctSpecsPath

Then rerun your test.

Some persons still get the error after they have made that change, or they get this error missing ) after argument list

errorMessagewdio

To resolve this error remove node from the command to have

./node_modules/.bin/wdio ./wdio.conf.js

secondNodeCommand

If you are still getting an error try to use the npm package npx.

npx wdio run wdio.conf.js

or

wdio wdio.conf.js

npxCommand

You can read up more on this module as it can be very useful.

After this rerun your test and it should pass.

Check out the Youtube Tutorial for this blog.


Written by Julia Pottinger who lives and works in Jamaica building useful things. Follow her on Twitter and check out her YouTube Channel

Sign up for Newsletter

Share this blog

© 2022 Julia Pottinger - All Rights Reserved