Skip to content

feat(fw): add pretty printing of vm traces #433

Open
@danceratopz

Description

@danceratopz

Currently, fill --traces -s does print vm traces to the terminal if a test fails (note -s to prevent pytest from capturing stdout), but they're rather ugly. It'd be nice to have a more compact pretty print of these traces.

For example (assuming the test has been modified to fail upon filling):

fill tests/berlin/eip2930_access_list/ --fork Berlin --evm-dump-dir=/tmp/evm-dump --traces -s

Screenshot:
image

Here's an example of a clean trace representation from retesteth:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersscope:fwScope: Framework (evm|tools|forks|pytest)type:feattype: Feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions