Skip to content

Commit a531ef6

Browse files
DavertMikclaude
andcommitted
ci: drop @testomatio/reporter/mocha from test scripts
The mocha adapter uses Mocha.utils.inherits, removed in mocha 12. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f32bcb0 commit a531ef6

3 files changed

Lines changed: 32 additions & 32 deletions

File tree

‎.github/workflows/webdriver.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
SELENIUM_HOST: localhost
6060
SELENIUM_PORT: 4444
6161
- name: run unit tests
62-
run: ./node_modules/.bin/mocha test/helper/WebDriver_test.js --exit --reporter @testomatio/reporter/mocha
62+
run: ./node_modules/.bin/mocha test/helper/WebDriver_test.js --exit
6363
timeout-minutes: 10
6464
env:
6565
SELENIUM_HOST: localhost

‎Bunoshfile.js‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -716,21 +716,21 @@ export async function prettier() {
716716
* Run unit tests.
717717
*/
718718
export async function testUnit() {
719-
await shell`mocha test/unit --recursive --timeout 10000 --reporter @testomatio/reporter/mocha`
719+
await shell`mocha test/unit --recursive --timeout 10000`
720720
}
721721

722722
/**
723723
* Run REST tests.
724724
*/
725725
export async function testRest() {
726-
await shell`mocha test/rest --recursive --timeout 20000 --reporter @testomatio/reporter/mocha`
726+
await shell`mocha test/rest --recursive --timeout 20000`
727727
}
728728

729729
/**
730730
* Run runner tests.
731731
*/
732732
export async function testRunner() {
733-
await shell`mocha test/runner --recursive --timeout 10000 --reporter @testomatio/reporter/mocha`
733+
await shell`mocha test/runner --recursive --timeout 10000`
734734
}
735735

736736
/**
@@ -756,28 +756,28 @@ export async function testWithMockServer() {
756756
* Run quick Appium tests.
757757
*/
758758
export async function testAppiumQuick() {
759-
await shell`mocha test/helper/Appium_test.js --grep 'quick' --reporter @testomatio/reporter/mocha`
759+
await shell`mocha test/helper/Appium_test.js --grep 'quick'`
760760
}
761761

762762
/**
763763
* Run the remaining (second) Appium tests.
764764
*/
765765
export async function testAppiumOther() {
766-
await shell`mocha test/helper/Appium_test.js --grep 'second' --reporter @testomatio/reporter/mocha`
766+
await shell`mocha test/helper/Appium_test.js --grep 'second'`
767767
}
768768

769769
/**
770770
* Run quick iOS Appium tests.
771771
*/
772772
export async function testIosAppiumQuick() {
773-
await shell`mocha test/helper/Appium_ios_test.js --grep 'quick' --reporter @testomatio/reporter/mocha`
773+
await shell`mocha test/helper/Appium_ios_test.js --grep 'quick'`
774774
}
775775

776776
/**
777777
* Run the remaining (second) iOS Appium tests.
778778
*/
779779
export async function testIosAppiumOther() {
780-
await shell`mocha test/helper/Appium_ios_test.js --grep 'second' --reporter @testomatio/reporter/mocha`
780+
await shell`mocha test/helper/Appium_ios_test.js --grep 'second'`
781781
}
782782

783783
/**
@@ -798,42 +798,42 @@ export async function testAppStop() {
798798
* Run Playwright helper unit tests.
799799
*/
800800
export async function testWebapiPlaywright() {
801-
await shell`mocha test/helper/Playwright_test.js --reporter @testomatio/reporter/mocha`
801+
await shell`mocha test/helper/Playwright_test.js`
802802
}
803803

804804
/**
805805
* Run Puppeteer helper unit tests.
806806
*/
807807
export async function testWebapiPuppeteer() {
808-
await shell`mocha test/helper/Puppeteer_test.js --reporter @testomatio/reporter/mocha`
808+
await shell`mocha test/helper/Puppeteer_test.js`
809809
}
810810

811811
/**
812812
* Run WebDriver helper unit tests.
813813
*/
814814
export async function testWebapiWebdriver() {
815-
await shell`mocha test/helper/WebDriver_test.js --timeout 10000 --reporter @testomatio/reporter/mocha`
815+
await shell`mocha test/helper/WebDriver_test.js --timeout 10000`
816816
}
817817

818818
/**
819819
* Run WebDriver helper unit tests without a Selenium server.
820820
*/
821821
export async function testWebapiWebdriverNoSelenium() {
822-
await shell`mocha test/helper/WebDriver.noSeleniumServer_test.js --timeout 10000 --reporter @testomatio/reporter/mocha`
822+
await shell`mocha test/helper/WebDriver.noSeleniumServer_test.js --timeout 10000`
823823
}
824824

825825
/**
826826
* Run Expect helper unit tests.
827827
*/
828828
export async function testExpect() {
829-
await shell`mocha test/helper/Expect_test.js --reporter @testomatio/reporter/mocha`
829+
await shell`mocha test/helper/Expect_test.js`
830830
}
831831

832832
/**
833833
* Run plugin tests.
834834
*/
835835
export async function testPlugin() {
836-
await shell`mocha test/plugin/plugin_test.js --reporter @testomatio/reporter/mocha`
836+
await shell`mocha test/plugin/plugin_test.js`
837837
}
838838

839839
/**

‎package.json‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,27 @@
6363
"lint-fix": "eslint bin/ examples/ lib/ test/ translations/ runok.cjs --fix",
6464
"prettier": "prettier --config prettier.config.js --write bin/**/*.js lib/**/*.js test/**/*.js translations/**/*.js runok.cjs",
6565
"docs": "./runok.cjs docs",
66-
"test:unit": "mocha test/unit --recursive --timeout 10000 --reporter @testomatio/reporter/mocha",
67-
"test:unit:windows": "mocha test/unit/container_test.js --recursive --timeout 10000 --reporter @testomatio/reporter/mocha",
68-
"test:rest": "mocha test/rest --recursive --timeout 20000 --reporter @testomatio/reporter/mocha",
69-
"test:runner": "mocha test/runner --recursive --timeout 10000 --reporter @testomatio/reporter/mocha",
66+
"test:unit": "mocha test/unit --recursive --timeout 10000",
67+
"test:unit:windows": "mocha test/unit/container_test.js --recursive --timeout 10000",
68+
"test:rest": "mocha test/rest --recursive --timeout 20000",
69+
"test:runner": "mocha test/runner --recursive --timeout 10000",
7070
"test": "npm run test:unit && npm run test:rest && npm run test:runner",
71-
"test:appium-quick": "mocha test/helper/Appium_test.js --grep 'quick' --reporter @testomatio/reporter/mocha",
72-
"test:appium-other": "mocha test/helper/Appium_test.js --grep 'second' --reporter @testomatio/reporter/mocha",
73-
"test:ios:appium-quick": "mocha test/helper/Appium_ios_test.js --grep 'quick' --reporter @testomatio/reporter/mocha",
74-
"test:ios:appium-other": "mocha test/helper/Appium_ios_test.js --grep 'second' --reporter @testomatio/reporter/mocha",
71+
"test:appium-quick": "mocha test/helper/Appium_test.js --grep 'quick'",
72+
"test:appium-other": "mocha test/helper/Appium_test.js --grep 'second'",
73+
"test:ios:appium-quick": "mocha test/helper/Appium_ios_test.js --grep 'quick'",
74+
"test:ios:appium-other": "mocha test/helper/Appium_ios_test.js --grep 'second'",
7575
"test-app:start": "php -S 127.0.0.1:8000 -t test/data/app",
7676
"test-app:stop": "kill -9 $(lsof -t -i:8000)",
77-
"test:unit:webbapi:playwright": "mocha test/helper/Playwright_test.js --reporter @testomatio/reporter/mocha",
78-
"test:unit:webbapi:puppeteer": "mocha test/helper/Puppeteer_test.js --reporter @testomatio/reporter/mocha",
79-
"test:unit:webbapi:webDriver": "mocha test/helper/WebDriver_test.js --timeout 10000 --reporter @testomatio/reporter/mocha",
80-
"test:unit:webbapi:webDriver:noSeleniumServer": "mocha test/helper/WebDriver.noSeleniumServer_test.js --timeout 10000 --reporter @testomatio/reporter/mocha",
81-
"test:unit:webbapi:cdpbrowser": "mocha test/helper/CDPBrowser_chrome_test.js --timeout 30000 --reporter @testomatio/reporter/mocha",
82-
"test:unit:webbapi:obscura": "mocha test/helper/CDPBrowser_obscura_test.js --timeout 30000 --reporter @testomatio/reporter/mocha",
83-
"test:unit:webbapi:lightpanda": "mocha test/helper/CDPBrowser_lightpanda_test.js --timeout 30000 --reporter @testomatio/reporter/mocha",
84-
"test:unit:webbapi:moli": "mocha test/helper/CDPBrowser_moli_test.js --timeout 30000 --reporter @testomatio/reporter/mocha",
85-
"test:unit:expect": "mocha test/helper/Expect_test.js --reporter @testomatio/reporter/mocha",
86-
"test:plugin": "mocha test/plugin/plugin_test.js --reporter @testomatio/reporter/mocha",
77+
"test:unit:webbapi:playwright": "mocha test/helper/Playwright_test.js",
78+
"test:unit:webbapi:puppeteer": "mocha test/helper/Puppeteer_test.js",
79+
"test:unit:webbapi:webDriver": "mocha test/helper/WebDriver_test.js --timeout 10000",
80+
"test:unit:webbapi:webDriver:noSeleniumServer": "mocha test/helper/WebDriver.noSeleniumServer_test.js --timeout 10000",
81+
"test:unit:webbapi:cdpbrowser": "mocha test/helper/CDPBrowser_chrome_test.js --timeout 30000",
82+
"test:unit:webbapi:obscura": "mocha test/helper/CDPBrowser_obscura_test.js --timeout 30000",
83+
"test:unit:webbapi:lightpanda": "mocha test/helper/CDPBrowser_lightpanda_test.js --timeout 30000",
84+
"test:unit:webbapi:moli": "mocha test/helper/CDPBrowser_moli_test.js --timeout 30000",
85+
"test:unit:expect": "mocha test/helper/Expect_test.js",
86+
"test:plugin": "mocha test/plugin/plugin_test.js",
8787
"def": "./runok.cjs def",
8888
"dev:graphql": "node test/data/graphql/index.js",
8989
"publish:site": "./runok.cjs publish:site",

0 commit comments

Comments
 (0)