Skip to content

Run integration/firestore tests in Saucelabs #3319

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

Merged
merged 10 commits into from
Jul 9, 2020

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented Jun 29, 2020

Enable Firestore integration tests (integration/firestore/karma.conf.js) to be run in Saucelabs in addition to unit tests (packages/firestore/karma.conf.js). Unit tests still have issues running in IE, due to Babel OOM issues, but integration tests should work. Needed to add an isNaN() polyfill as well.

Disabled namespace integration tests as they are not very useful in cross-browser tests.

@changeset-bot
Copy link

changeset-bot bot commented Jun 29, 2020

💥 No Changeset

Latest commit: 723b750

Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂

If these changes should be published to npm, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 29, 2020

Binary Size Report

Affected SDKs

  • @firebase/polyfill

    Type Base (417dd7c) Head (10e6792) Diff
    main 733 B 775 B +42 B (+5.7%)
    module 666 B 705 B +39 B (+5.9%)
  • firebase

    Type Base (417dd7c) Head (10e6792) Diff
    firebase.js 818 kB 818 kB +79 B (+0.0%)

Test Logs

@hsubox76 hsubox76 force-pushed the ch-firestore-sl-integration branch from b4b2e9f to 2fca07a Compare July 8, 2020 22:42
`${path.dirname(require.resolve('firebase'))}/firebase-firestore.js`,
'./dist/test-harness.js'
];
const files = ['./dist/test-harness.js'];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These files are not necessary (and I think not there), that code is built into test-harness.js now.

firestore: {
// Firestore unit tests have OOM problems compiling with Babel for IE.
// Firestore integration/firestore tests do run on all browsers.
'packages/firestore': {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The key is a bit confusing until I read more code below. Can we use the package name (@firebase/firestore) instead to make it easier to understand?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

// When test queue is empty, exit with code 0 if no tests failed or
// 1 if any tests failed.
if (!testFiles.length) process.exit(maxExitCode);
if (!testFiles.length) {
for (const fileName in results) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: for (const fileName of Object.key(results)) to include only OwnProperties.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@hsubox76 hsubox76 changed the title WIP: Run integration/firestore tests in Saucelabs Run integration/firestore tests in Saucelabs Jul 9, 2020
@hsubox76 hsubox76 merged commit 3c21efe into master Jul 9, 2020
@firebase firebase locked and limited conversation to collaborators Aug 9, 2020
@hsubox76 hsubox76 deleted the ch-firestore-sl-integration branch January 21, 2021 20:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants