You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
movement-network/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.
Summary
movement-network/movement#1214 uses the
MoveHarnessto write its tests. Many of these tests will be rewritten in this repository, thus providing the ability to getMoveHarnessfrom*Migratorstructs simplifies the addition of said tests.A
MoveHarnesscan be constructed from aFakeExecutorwhich can be instantiated at a snapshot with aFakeDataStore.Warning
FakeDataStoredoes 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
GlobalStorageKeyset 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.