-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move away from the karma test runner for browser tests #810
Comments
We started using |
This ran successfully for me: import {remote} from "webdriverio";
const browserstackUsername = process.env.BROWSERSTACK_USERNAME ?? "";
const browserstackAccessKey = process.env.BROWSERSTACK_ACCESS_KEY ?? "";
if (browserstackUsername.length == 0 || browserstackAccessKey.length == 0) {
throw new Error(
"The environment variables BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY are required to run tests on browserstack.",
);
}
const browser = await remote({
user: browserstackUsername,
key: browserstackAccessKey,
services: [
["browserstack", {
// browserstackLocal: true
}]
],
capabilities: [
{
browserName: 'Chrome',
'bstack:options': {
browserVersion: '120.0',
os: 'Windows',
osVersion: '10'
}
},
],
// Directory to store all test runner log files (including reporter logs and wdio logs).
// If not set, all logs are streamed to stdout, which conflicts with the conformance runner I/O.
// outputDir: new URL("logs", import.meta.url).pathname,
});
await browser.url("https://connectrpc.com");
await browser.deleteSession(); |
Tracking this separately in #1238. |
We test web clients on browsers via browserstack with the jasmine test framework and karma, which has an integration with browserstack. (See here for details.)
Karma is deprecated since April 2023, and we should move to an alternative mechanism to ensure compatibility with old browser.
The text was updated successfully, but these errors were encountered: