solfmt

Formats output of Solana's cargo test-bpf/test-sbf command.

Installation

sh cargo install solfmt

Usage

  1. Run the your test command as usual (cargo test-sbf -- --test-threads=1)
  2. Pipe stderr into stdout (2>&1)
  3. Pipe the result to solfmt (| sofmt)

sh cargo test-sbf -- --test-threads=1 2>&1 | solfmt

  1. Enjoy more readable logs

fmt-logs

Same logs without solfmt

raw-logs

LICENSE

MIT