Skip to content

Commit c66dd65

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 fd15c49 commit c66dd65

3 files changed

Lines changed: 31 additions & 31 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
@@ -715,21 +715,21 @@ export async function prettier() {
715715
* Run unit tests.
716716
*/
717717
export async function testUnit() {
718-
await shell`mocha test/unit --recursive --timeout 10000 --reporter @testomatio/reporter/mocha`
718+
await shell`mocha test/unit --recursive --timeout 10000`
719719
}
720720

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

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

735735
/**
@@ -755,28 +755,28 @@ export async function testWithMockServer() {
755755
* Run quick Appium tests.
756756
*/
757757
export async function testAppiumQuick() {
758-
await shell`mocha test/helper/Appium_test.js --grep 'quick' --reporter @testomatio/reporter/mocha`
758+
await shell`mocha test/helper/Appium_test.js --grep 'quick'`
759759
}
760760

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

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

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

782782
/**
@@ -797,42 +797,42 @@ export async function testAppStop() {
797797
* Run Playwright helper unit tests.
798798
*/
799799
export async function testWebapiPlaywright() {
800-
await shell`mocha test/helper/Playwright_test.js --reporter @testomatio/reporter/mocha`
800+
await shell`mocha test/helper/Playwright_test.js`
801801
}
802802

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

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

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

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

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

838838
/**

‎package.json‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,26 @@
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:expect": "mocha test/helper/Expect_test.js --reporter @testomatio/reporter/mocha",
85-
"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:expect": "mocha test/helper/Expect_test.js",
85+
"test:plugin": "mocha test/plugin/plugin_test.js",
8686
"def": "./runok.cjs def",
8787
"dev:graphql": "node test/data/graphql/index.js",
8888
"publish:site": "./runok.cjs publish:site",

0 commit comments

Comments
 (0)