Page MenuHomePhabricator
Paste P44730

ProofreadPage$ npm run selenium-test
ArchivedPublic

Authored by zeljkofilipin on Feb 22 2023, 12:37 PM.
Tags
None
Referenced Files
F36864968: ProofreadPage$ npm run selenium-test
Feb 22 2023, 12:37 PM
Subscribers
None
z@imac-ubuntu:~/Documents/gerrit/mediawiki/core/extensions/ProofreadPage$ fresh-node14 -env -net
# fresh: 22.11.1
# image: docker-registry.wikimedia.org/releng/node14-test-browser:0.0.2-s4
# software: Debian GNU/Linux 11 (bullseye)
# Node.js v14.17.5 (npm 7.21.0)
# Chromium 97.0.4692.99
# Mozilla Firefox 91.5.0esr
# JSDuck 5.3.4 (Ruby 2.7.4) ruby 2.7.4p191
# mount: /ProofreadPage ➟ /home/z/Documents/gerrit/mediawiki/core/extensions/ProofreadPage (read-write)
# /ProofreadPage/.git ➟ /home/z/Documents/gerrit/mediawiki/core/extensions/ProofreadPage/.git (read-only)
# env: MW_*, MEDIAWIKI_*
# net: expose host
🌱 Fresh!
I have no name!@imac-ubuntu:/ProofreadPage$ npm run selenium-test
> selenium-test
> wdio tests/selenium/wdio.conf.js
2023-02-22T12:25:59.207Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: /ProofreadPage/tests/selenium/wdio.conf.js: ENOENT: no such file or directory, open '/LocalSettings.php'
wdio [command]
The `wdio` command allows you run and manage your WebdriverIO test suite.
If no command is provided it calls the `run` command by default, so:
$ wdio wdio.conf.js
is the same as:
$ wdio run wdio.conf.js
For more information, visit: https://webdriver.io/docs/clioptions
Commands:
wdio config Initialize WebdriverIO and setup
configuration in your current project.
wdio install <type> <name> Add a `reporter`, `service`, or `framework`
to your WebdriverIO project. The command
installs the package from NPM, adds it to
your package.json and modifies the
wdio.conf.js accordingly.
wdio repl <option> [capabilities] Run WebDriver session in command line
wdio run <configPath> Run your WDIO configuration file to
initialize your tests. (default)
Options:
--help Show help [boolean]
--version Show version number [boolean]
--watch Run WebdriverIO in watch mode [boolean]
-h, --hostname automation driver host address [string]
-p, --port automation driver port [number]
--path path to WebDriver endpoints (default "/") [string]
-u, --user username if using a cloud service as automation backend
[string]
-k, --key corresponding access key to the user [string]
-l, --logLevel level of logging verbosity
[choices: "trace", "debug", "info", "warn", "error", "silent"]
--bail stop test runner after specific amount of tests have
failed [number]
--baseUrl shorten url command calls by setting a base url[string]
-w, --waitforTimeout timeout for all waitForXXX commands [number]
-f, --framework defines the framework (Mocha, Jasmine or Cucumber) to
run the specs [string]
-r, --reporters reporters to print out the results on stdout [array]
--suite overwrites the specs attribute and runs the defined
suite [array]
--spec run only a certain spec file - overrides specs piped
from stdin [array]
--exclude exclude certain spec file from the test run - overrides
exclude piped from stdin [array]
--mochaOpts Mocha options
--jasmineOpts Jasmine options
--cucumberOpts Cucumber options
--autoCompileOpts Auto compilation options
Examples:
wdio run wdio.conf.js --suite foobar Run suite on testsuite "foobar"
wdio run wdio.conf.js --spec Run suite on specific specs
./tests/e2e/a.js --spec ./tests/e2e/b.js
wdio run wdio.conf.js --spec Run scenario by line number
./tests/e2e/a.feature:5
wdio run wdio.conf.js --spec Run scenarios by line number
./tests/e2e/a.feature:5:10
wdio run wdio.conf.js --spec Run scenarios by line number in
./tests/e2e/a.feature:5:10 --spec single feature and another complete
./test/e2e/b.feature feature
wdio install reporter spec Install @wdio/spec-reporter
wdio repl chrome -u <SAUCE_USERNAME> -k Run repl in Sauce Labs cloud
<SAUCE_ACCESS_KEY>
Documentation: https://webdriver.io
@wdio/cli (v7.3.0)
Error: ENOENT: no such file or directory, open '/LocalSettings.php'
at Object.openSync (fs.js:498:3)
at Object.readFileSync (fs.js:394:35)
at Object.<anonymous> (/ProofreadPage/tests/selenium/wdio.conf.js:10:33)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at FileSystemPathService.loadFile (/ProofreadPage/node_modules/@wdio/config/build/lib/FileSystemPathService.js:22:16)
exit