-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Summary
movementlabsxyz/movement#1214 uses the MoveHarness to write its tests. Many of these tests will be rewritten in this repository, thus providing the ability to get MoveHarness from *Migrator structs simplifies the addition of said tests.
A MoveHarness can be constructed from a FakeExecutor which can be instantiated at a snapshot with a FakeDataStore.
Warning
FakeDataStore does not seem to have a direct from DB constructor. This is likely because you should not attempt to load all state keys and values into memory—hence the complexity of the loader adapter.
Setting the relevant state keys by iterating over and filtering the total GlobalStorageKey set may be reasonable for some initial checks. But, it’s hard to reason about soundness and completeness.
Note
Because of the warning above and general testing principles, we will still likely want to validate some of the true e2e behavior of the node, not just the behavior within harness for sanity.