3737 trimPathPtr = flag .String ("trimpath" , "" , "" )
3838 // Undocumented flags
3939 followVerbosePtr = flag .Bool ("follow-verbose" , false , "" )
40+ includeTimestamp = flag .Bool ("include-timestamp" , false , "include timestamps in follow output" )
4041
4142 // Legacy flags
4243 noBordersPtr = flag .Bool ("noborders" , false , "" )
@@ -48,23 +49,24 @@ var usage = `Usage:
4849 go test [packages...] -json > pkgs.out ; tparse [options...] -file pkgs.out
4950
5051Options:
51- -h Show help.
52- -v Show version.
53- -all Display table event for pass and skip. (Failed items always displayed)
54- -pass Display table for passed tests.
55- -skip Display table for skipped tests.
56- -notests Display packages containing no test files or empty test files.
57- -smallscreen Split subtest names vertically to fit on smaller screens.
58- -slow Number of slowest tests to display. Default is 0, display all.
59- -sort Sort table output by attribute [name, elapsed, cover]. Default is name.
60- -nocolor Disable all colors. (NO_COLOR also supported)
61- -format The output format for tables [basic, plain, markdown]. Default is basic.
62- -file Read test output from a file.
63- -follow Follow raw output from go test to stdout.
64- -follow-output Write raw output from go test to a file (takes precedence over -follow).
65- -progress Print a single summary line for each package. Useful for long running test suites.
66- -compare Compare against a previous test output file. (experimental)
67- -trimpath Remove path prefix from package names in output, simplifying their display.
52+ -h Show help.
53+ -v Show version.
54+ -all Display table event for pass and skip. (Failed items always displayed)
55+ -pass Display table for passed tests.
56+ -skip Display table for skipped tests.
57+ -notests Display packages containing no test files or empty test files.
58+ -smallscreen Split subtest names vertically to fit on smaller screens.
59+ -slow Number of slowest tests to display. Default is 0, display all.
60+ -sort Sort table output by attribute [name, elapsed, cover]. Default is name.
61+ -nocolor Disable all colors. (NO_COLOR also supported)
62+ -format The output format for tables [basic, plain, markdown]. Default is basic.
63+ -file Read test output from a file.
64+ -follow Follow raw output from go test to stdout.
65+ -follow-output Write raw output from go test to a file (takes precedence over -follow).
66+ -include-timestamp Include timestamps in follow output.
67+ -progress Print a single summary line for each package. Useful for long running test suites.
68+ -compare Compare against a previous test output file. (experimental)
69+ -trimpath Remove path prefix from package names in output, simplifying their display.
6870`
6971
7072var version string
@@ -163,12 +165,13 @@ func main() {
163165 Trim : * smallScreenPtr ,
164166 TrimPath : * trimPathPtr ,
165167 },
166- Format : format ,
167- Sorter : sorter ,
168- ShowNoTests : * showNoTestsPtr ,
169- Progress : * progressPtr ,
170- ProgressOutput : os .Stdout ,
171- Compare : * comparePtr ,
168+ Format : format ,
169+ Sorter : sorter ,
170+ ShowNoTests : * showNoTestsPtr ,
171+ Progress : * progressPtr ,
172+ ProgressOutput : os .Stdout ,
173+ Compare : * comparePtr ,
174+ IncludeTimestamp : * includeTimestamp ,
172175
173176 // Do not expose publicly.
174177 DisableTableOutput : false ,
0 commit comments