-
Notifications
You must be signed in to change notification settings - Fork 52
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
Refactor mock framework and tests #700
Comments
Some comments/questions about the overall goals:
|
AFAIK it is currently not used. The idea was to use it to generate a valid set of accounts, since these require PoW, and then just load them on the tests (specially because in the beginning we didn't have the reduction to the PoW behind the |
After doing some basic tests, I agree that removing the crate is the better solution and I'm currently making those changes. |
The primary goal would be to make testing the code in
Sounds good! |
I think this can be closed, planning on opening an issue with potential followups soon (though some of what I was planning was tackled by Philipp recently) |
The way we run tests and mock various objects for testing purposes is far from ideal. There are quite a few issues now in this repo related to tests/mock objects and rather than dealing with them one by one, I think it would make sense to make a comprehensive refactoring.
The relevant issues are:
mock
binary is broken #366test_note_script
andtest_wallet
tomiden-tx
and use mock_chain instead of MockDataStore #258Other relevant issues might be (though, not sure if we should tackle them yet):
build.rs
#541Also, there is a relevant discussion in 0xPolygonMiden/compiler#168.
It is not yet clear to me what exactly is the best approach to refactor tests/mocks. It may be that we need to improve the
miden-mock
crate somehow, or maybe get rid of it entirely and move relevant mocks to different crates.The text was updated successfully, but these errors were encountered: