Skip to content

Cost Tracking Testing #636

@ureeves

Description

@ureeves

Once the cost tracking implementation is complete, we should add some tests for it to ensure parity with the interpreter.

Our existing test infrastructure should make adding a comparison between the interpreter and the WebAssembly runtime's accounting of costs not too difficult. By modifying TestEnvironment::init_contract_with_snippet to use both the interpreter's and the runtime's cost tracking, all the tests that rely on crosschecking the results of executing a contract will now also check the cost tracking code.

https://github.com/stacks-network/clarity-wasm/blob/d7e4a3cc739cfdf6577fc7ae177f803e773aaeb7/clar2wasm/src/tools.rs#L156-L160

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions