wiki.techinc.nl/package.json
Željko Filipin 4a657ec634 selenium: Fix failing selenium-daily-beta(commons)-MediaWiki Jenkins job
The jobs are running a subset of tests. (Tests containing string
`@daily` in  the name.) To find the tests we are using
`--mochaOpts.grep` WebdriverIO command line option. The filter is
executed after the tests have already started. Since some test files
have no tests with string `@daily`, they are skipped. That results in
JUnit reporter creating a couple of empty XML files. Jenkins thinks
empty files are failures and fails the build.

This commit creates a suite of files that have tests with string
`@daily` and runs only those files.

Bug: T281505
Change-Id: Id844da81feac49f2a2b6820e98ead98d7e932e9f
2021-04-30 13:42:20 +02:00

44 lines
1.4 KiB
JSON

{
"private": true,
"scripts": {
"api-testing": "npm run api-testing-lint && mocha --timeout 0 --recursive tests/api-testing",
"api-testing-lint": "eslint --cache --max-warnings 0 tests/api-testing/**",
"build": "grunt minify",
"test": "grunt lint && npm run doc",
"qunit": "grunt qunit",
"doc": "jsduck",
"postdoc": "grunt copy:jsduck",
"selenium-daily": "MW_SCRIPT_PATH=/w npm run selenium-test -- --suite daily --mochaOpts.grep @daily",
"selenium-test": "wdio ./tests/selenium/wdio.conf.js"
},
"devDependencies": {
"@wdio/cli": "6.1.12",
"@wdio/dot-reporter": "6.1.9",
"@wdio/junit-reporter": "6.1.9",
"@wdio/local-runner": "6.1.12",
"@wdio/mocha-framework": "6.1.8",
"@wdio/sync": "6.1.8",
"api-testing": "1.3.0",
"dotenv": "8.2.0",
"eslint-config-wikimedia": "0.20.0",
"grunt": "1.3.0",
"grunt-banana-checker": "0.9.0",
"grunt-contrib-copy": "1.0.0",
"grunt-contrib-watch": "1.1.0",
"grunt-eslint": "23.0.0",
"grunt-karma": "4.0.0",
"grunt-stylelint": "0.16.0",
"grunt-svgmin": "5.0.0",
"karma": "5.0.4",
"karma-chrome-launcher": "3.1.0",
"karma-firefox-launcher": "1.3.0",
"karma-mocha-reporter": "2.2.5",
"karma-qunit": "4.1.0",
"postcss-less": "2.0.0",
"qunit": "2.10.0",
"stylelint-config-wikimedia": "0.10.3",
"wdio-mediawiki": "file:tests/selenium/wdio-mediawiki",
"wdio-video-reporter": "3.1.1",
"webdriverio": "6.1.12"
}
}