-
Notifications
You must be signed in to change notification settings - Fork 166
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
feat(dojo-core): add world test capabilities #2323
Conversation
The qualified path of the model contract is now added in the manifest. A subsequent PR will add a new macro to manage those to easily setup tests with model's |
WalkthroughOhayo, sensei! The recent updates enhance the testing framework and modularity of the Dojo codebase. New testing traits and functions have been introduced in the Changes
Feel free to reach out if you need more details or further clarifications, sensei! Recent review detailsConfiguration used: .coderabbit.yaml Files ignored due to path filters (2)
Files selected for processing (35)
Files skipped from review due to trivial changes (8)
Additional comments not posted (59)
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2323 +/- ##
==========================================
+ Coverage 66.18% 67.35% +1.17%
==========================================
Files 352 354 +2
Lines 46739 46500 -239
==========================================
+ Hits 30933 31321 +388
+ Misses 15806 15179 -627 ☔ View full report in Codecov by Sentry. |
Description
With the new ACL rework, it's more challenging to write tests with direct access to the world's database.
This PR introduces a new
IWorldTest
interface that allows the use ofIModelTest
interface to actually set data into the world's storage without the ACL limitation.The main issue on testing was to set some values to verify how a system behaves based on those values.
With the new interface, at any point in the test, dev can set data for specific models without worrying about permissions.
Checklist
IWorldTestDispatcher
can be embedded into theIModelTest
to always work with aIWorldDispatcher
to keep interfaces clean.Summary by CodeRabbit
New Features
qualified_path
field to various models and manifests for improved identification and organization.Bug Fixes
Documentation