-
Notifications
You must be signed in to change notification settings - Fork 189
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
Add tests for engine and processors #1679
Comments
@glihm i will love to work on this issue |
Hey @mubarak23, thanks for the will to contribute! |
@glihm i have some questions,
|
An event is composed of two arrays of felts.
To which entities are you referring to?
This depends on the processor. In Torii, you'll see that each processor implementation should have a
The goal of this issue is to organize tests around this. The principal challenge here is that, generally the processor require to fetch data from the DB and store data to the DB. Ideally, we want those tests to be as unit as we can. Which could imply:
I would say |
@glihm i will like to tackle this issue using second approach [2] by following these outlines |
Hum, sorry @mubarak23 I've not given any followup here. |
@glihm Can I work on this? |
@PedroRosalba any idea on how you would tackle that? If yes, all yours! |
hi @glihm, i would love to work on this |
All yours, let us know if you have any question. 👍 |
@glihm, i would suggest an hybrid approach. then, for testing the overall flow of the engine, including event fetching, processing, and pagination. we could use a test runner like Katana to simulate the blockchain environment and ensure that the engine interacts correctly with the blockchain and processes events as expected. |
If this is still open, I'd like to step in I was an early contributor to the Starknet community. After being disconnected for a few months, I’m eager to get back on track, and I’d like to work on this issue as a way to re-engage and contribute actively again. Aside from that, I’m passionate about seeing Web3 gaming thrive, and I believe Dojo is the best project to make that vision a reality. |
hey @bigherc18 im currently working on it |
Any update @g4titanx on this task? |
yes @glihm im gonna submit a pr in a moment |
Torii engine is in charge of pulling the
events
and processing each one of them using the correspondingprocessor
.More tests have to be added to ensure the modifications made to the engine and processors are correctly done.
The engine is here: https://github.com/dojoengine/dojo/blob/22072dd62792fd3625d5c02c1f10254b6b10f9f5/crates/torii/core/src/engine.rs
The processors are here: https://github.com/dojoengine/dojo/blob/22072dd62792fd3625d5c02c1f10254b6b10f9f5/crates/torii/core/src/processors/mod.rs
Two approaches to write those tests:
This issue can be tackled in two PR if necessary.
The text was updated successfully, but these errors were encountered: