HomeSource World

cmd/devp2p, internal/utesting: implement TAP output (#21760)

Description

cmd/devp2p, internal/utesting: implement TAP output (#21760)

TAP is a text format for test results. Parsers for it are available in many languages,
making it easy to consume. I want TAP output from our protocol tests because the
Hive wrapper around them needs to know about the test names and their individual
results and logs. It would also be possible to just write this info as JSON, but I don't
want to invent a new format.

This also improves the normal console output for tests (when running without --tap).
It now prints -- RUN lines before any output from the test, and indents the log output
by one space.

Details

Provenance
Felix Lange <fjl@twurst.com>Authored on Wed, Nov 4, 2:02 PM
GitHub <noreply@github.com>Committed on Wed, Nov 4, 2:02 PM
Parents
rGETHe6402677c2bb: core/state/snapshot: fix journal recovery from generating old journal (#21775)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETH5d20fbbb6fb9: cmd/devp2p, internal/utesting: implement TAP output (#21760) (authored by Felix Lange <fjl@twurst.com>).Wed, Nov 4, 2:02 PM