Add timestamp and elapsed time decorations to TAP test logs
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 10 Apr 2022 12:46:12 +0000 (08:46 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sun, 10 Apr 2022 13:19:09 +0000 (09:19 -0400)
commit3b0a42e74edfc57c3cef1f3b1a583d4fe5cca846
treea7c0a46cadee5020ac8b605abfd661e95d8c659a
parent7b735f8b52ad4ccf742c29dc41e3d049bdffe2fa
Add timestamp and elapsed time decorations to TAP test logs

These apply to traces from Test::More functions such as ok(), is(),
diag() and note(). Output from other sources (e.g. external programs
such a initdb) is not affected. The elapsed time is the time since the
last such trace (or the beginning of the test in the first case). Times
and timestamps are at millisecond precision.

Discussion: https://postgr.es/m/20220401172150.rsycz4lrn7ewruil@alap3.anarazel.de
src/test/perl/PostgreSQL/Test/SimpleTee.pm