mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
zuul is now archived [1] and does not support the new W3C WebDriver protocol, since it relies on the wd package [2] under the hood, which uses the (now deprecated) JSON Wire Protocol. We will now use the webdriver.io test framework, which allows to run our tests in local and on Sauce Labs (cross-browser and mobile tests). This allows us to run our tests on latest versions of Android and iOS, since Sauce Labs only supports the W3C WebDriver protocol for these platforms ([3]). [1]: https://github.com/defunctzombie/zuul [2]: https://github.com/admc/wd [3]: https://docs.saucelabs.com/dev/w3c-webdriver-capabilities/
20 lines
411 B
TypeScript
20 lines
411 B
TypeScript
import Launcher from "@wdio/cli";
|
|
import { createServer } from "./support/server";
|
|
|
|
const launcher = new Launcher("./wdio.conf.js");
|
|
|
|
async function run() {
|
|
const server = createServer();
|
|
|
|
try {
|
|
const exitCode = await launcher.run();
|
|
server.close();
|
|
process.exit(exitCode);
|
|
} catch (e) {
|
|
console.error("Launcher failed to start the test", e.stacktrace);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
run();
|