sui icon indicating copy to clipboard operation
sui copied to clipboard

[move] Tracing tests and plumbing into the Move CLI (_not_ Sui CLI yet!)

Open tzakian opened this issue 7 months ago • 1 comments

Description

Plumbs tracing into the Move unit tests, and Move CLI (not the Sui CLI just yet!).

You can now run with move test --trace-execution or move test --trace-execution <dir>. If the Move CLI binary was compiled with the gas-profiled feature flag enabled this will result in a trace file for each unit test either under <move-pkg>/traces/ or under <move-pkg>/<dir>/. Once we're happy with this, and we've kicked the tires a bit more + moved over test coverage and gas profiling plumbing this up into the Sui CLI is something we should do.

This additionally adds a new test to the ./tests.sh script for external crates to compile and run tracing tests with the gas-profiler flag set.

PR Stack:

  1. #18727
  2. #18729
  3. #18730 <<<<< You are here

Test plan

Added a number of tests.


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • [ ] Protocol:
  • [ ] Nodes (Validators and Full nodes):
  • [ ] Indexer:
  • [ ] JSON-RPC:
  • [ ] GraphQL:
  • [ ] CLI:
  • [ ] Rust SDK:
  • [ ] REST API:

tzakian avatar Jul 18 '24 21:07 tzakian