-
Notifications
You must be signed in to change notification settings - Fork 134
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
👷 Skip Safari and IE for extension Browserstack unit tests #2816
Conversation
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
package.json
Outdated
@@ -20,7 +20,7 @@ | |||
"test": "yarn test:unit:watch", | |||
"test:unit": "karma start ./test/unit/karma.local.conf.js", | |||
"test:unit:watch": "yarn test:unit --no-single-run", | |||
"test:unit:bs": "node ./scripts/test/bs-wrapper.js karma start test/unit/karma.bs.conf.js", | |||
"test:unit:bs": "node ./scripts/test/bs-wrapper.js karma start test/unit/karma.bs.conf.js && node ./scripts/test/bs-wrapper.js karma start test/unit/karma.bs.conf.js --ext", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question❓: shall we proceed with skipping the Browserstack tests for the extension completely as we were already running it on headless chrome?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would be simpler, yes!
test/unit/karma.bs.conf.js
Outdated
let { browserConfigurations } = require('../browsers.conf') | ||
|
||
const karmaBaseConf = require('./karma.base.conf') | ||
|
||
const isExtension = process.argv.includes('--ext') | ||
browserConfigurations = isExtension | ||
? browserConfigurations.filter((configuration) => !['ie', 'safari'].includes(configuration.name.toLowerCase())) | ||
: browserConfigurations | ||
|
||
module.exports = function (config) { | ||
config.set({ | ||
...karmaBaseConf, | ||
files: isExtension ? [...karmaBaseConf.files, 'developer-extension/src/**/*.spec.ts'] : karmaBaseConf.files, | ||
plugins: [...karmaBaseConf.plugins, 'karma-browserstack-launcher'], | ||
preprocessors: isExtension | ||
? { | ||
...karmaBaseConf.preprocessors, | ||
'developer-extension/src/**/*.ts': ['webpack', 'sourcemap'], | ||
} | ||
: karmaBaseConf.preprocessors, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💬 suggestion: this is not needed anymore, maybe remove it?
rum-events-format
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to the rum-events-format and telemetry event types are unrelated, could you revert them?
Motivation
We do not need to run extension tests on Safari or IE
Changes
Add a browser configuration for extension only karma test.
Testing
I have gone over the contributing documentation.