Skip to content
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

Migrate set tests to integration tests #5290

Merged
merged 4 commits into from Jan 24, 2023
Merged

Conversation

gagik
Copy link
Contributor

@gagik gagik commented Jan 18, 2023

No description provided.

@cla-bot cla-bot bot added the cla: yes label Jan 18, 2023
Copy link
Member

@kraenhansen kraenhansen left a comment

Choose a reason for hiding this comment

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

Great job.
We should definitely clean this up once we've got it running against RN on bindgen.

Copy link
Contributor

@takameyer takameyer left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏼

names: Realm.Set<string>;
}

describe("Schema", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This could later be removed, as the tests for parsing schemas should cover this.

Copy link
Contributor

Choose a reason for hiding this comment

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

We would need some sort of reminder. We should be tracking what should later be refactored.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would a TODO comment be sufficient or is it better to have something specific to this test refactoring, TOREFACTOR or something? @kraenhansen

Copy link
Member

Choose a reason for hiding this comment

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

// TODO is fine 🙂
(alternatively TOREDO? 🙈 )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess I can just TODO then, it'll all be in same directory so should be pretty easy to figure out.

gagik and others added 2 commits January 23, 2023 17:13
@gagik gagik merged commit d731486 into test-migration-master Jan 24, 2023
@gagik gagik deleted the gagik/set-tests branch January 24, 2023 11:33
takameyer pushed a commit that referenced this pull request Feb 8, 2023
Co-authored-by: Kræn Hansen <kraen.hansen@mongodb.com>
takameyer pushed a commit that referenced this pull request Feb 10, 2023
Co-authored-by: Kræn Hansen <kraen.hansen@mongodb.com>
takameyer pushed a commit that referenced this pull request Feb 10, 2023
Co-authored-by: Kræn Hansen <kraen.hansen@mongodb.com>
kraenhansen added a commit that referenced this pull request Feb 17, 2023
Co-authored-by: Kræn Hansen <kraen.hansen@mongodb.com>
takameyer added a commit that referenced this pull request Feb 23, 2023
* Initial commit

* Documenting guidelines for testing & refactoring accordingly (#4584)

* Fixed types of openRealm

* Adding documentation on the hooks

* Apply suggestions from code review

* Test Migration: Alias tests (#4581)

* Migrate alias tests
* Refactor to follow new test guidelines
* Remove alias-tests from legacy test spec

* Add migration tests (#5285)

* Migrate set tests to integration tests  (#5290)

* Move list tests to ts (#5287)

* move app tests to typescript (#5297)

* remove mistakenly added duplicates of apps

* Test Migration: Results Tests (#5325)

* move mixed tests to integration tests (#5256)

* Move array-buffer tests to integration tests (#5255)

* use correct baseurl for tests (#5337)

* migrate dictionary tests to ts (#5254)

* move linking-objects tests to ts (#5268)

* Test Migration: User Tests (#5324)

* Test Migration: Queries test (#5299)

* Test Migration: Notification Tests (#5347)

* Add a debug launcher for integration tests

* Fix the mongo client tests for local baas

* fix queries test, make test errors more verbose

* Remove Chrome Debugger and fix package-lock problems (#5403)

* Pushed Chrome Debugger Removal with Lint errors (#5414)

* fix the errors

* Andrew/tests/fix-watch (#5412)

* Initial commit

* Fix watch for React Native

* Remove lock files

* Migrate object-tests to TS (#5348)

* test migration:  open-behaviour (#5365)

* test migration: mixed-sync-test (#5398)

* migrate encryption tests to TS (#5362)

* migrate sync-based UUID, Dictionary and Set tests (#5356)

* migrate realm tests to TS (#5352)

there are additions to other files as well such as bson.ts, that is because the old realm.js file had som tests that made more sense elsewhere, so I've moved such tests into other fields where I thought it made more sense

* migrate partition-values tests to TS (#5359)

* test migration: session tests (#5391)

* Fix issues with migrated integration tests, add select helper method. (#5429)

* Refactored the importApp hook

* Remove BSON as a dependency from tests

* Fixed import app hook 🤞

* Renamed "BackingDB" to "mongodb"

* Throw on app import errors

* Delete the app on failure to import

* Added bundled Realm to iOS app

* Updating Gemfile.lock after RN update

* Increase test timeouts

* fix remainder of failing integration tests (#5451)

* Cleanup tests and move test-runners into install-tests

* Small Fixes for Stability and Cleanup

* path tests now put realms in a testFiles folder which has been added to .gitignore
* path tests now delete the realms when finished
* increased the longTimeout to 30 seconds as some of the migrated tests can take this long
* added more `this.longTimeout` calls where appropriate
* added `mongodb-realm` directory to .gitignore, which contains app configuration when importing apps

* Delete dependants of `tests` and any unused files

* Andrew/app-importer/rules (#5478)

* Fix for applying the default rules to BaaS

* Remove any other rules and apply a general rule that allows everything
* Change the app importer to update the default rule

* Also fix it for realm-web

* Fix web tests and apply PR feedback

* Update docker image for BaaS in web tests

* `realm-web` importing http service fixed (#5483)

* Use the "default_rule" only for mongodb services

* Ensure download assisted_agg in baas test server

* Fix a broken test from upgrading baas
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants