Skip to content

Add MoveHarness support #162

@l-monninger

Description

@l-monninger

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.

Metadata

Metadata

Assignees

Labels

featureThis issue introduces new behaviorpriority:mediumThis issue should be worked on progressively but does not need consistent immediate attention

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions