`PASS package` entries malformatted
pashagolub opened this issue Β· 3 comments
pashagolub commented
Trying to execute go test ./... -coverprofile='c.out' -json | tparse -all -smallscreen
with Go v1.20 I'm getting weird lines in the output:
PASS package <package name1>
PASS package <package name2>
...
First of all, every entry is in its own table. The second, PASS word formatted as red. Please, see screenshot for details.
mfridman commented
I'll fix it up, I believe it's the new Action that was added in 1.20. I just need to exclude it from the final output.
mfridman commented
@pashagolub I pushed a fix for this, it should be available on v0.12.x
tag.
I say v0.12.x
because the patch releases are attempts to fix goreleaser which had some breaking changes.
Are you installing tparse
directly via go install, or are you using the GitHub Assets to fetch a pre-built binary?
pashagolub commented
Thanks! Works like a charm!
$ go install github.com/mfridman/tparse@latest
go: downloading github.com/mfridman/tparse v0.12.1
go: downloading github.com/aymanbagabas/go-osc52 v1.0.3
go: downloading golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
$ go test ./... -coverprofile='c.out' -json | tparse -all -smallscreen
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β STATUS β ELAPSED β TEST β PACKAGE β
βββββββββββΌββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββ
β PASS β 0.01 β TestStatus β pg_timetable β
β β β β /internal β
β β β β /api β
β PASS β 0.00 β TestChainManager β pg_timetable β
β β β β /internal β
β β β β /api β
β β β β β
β PASS β 0.02 β TestConfig β pg_timetable β
β β β β /internal β
β β β β /config β
β PASS β 0.01 β TestParseFail β pg_timetable β
β β β β /internal β
β β β β /config β
β PASS β 0.00 β TestParseSuccess β pg_timetable β
β β β β /internal β
β β β β /config β
β PASS β 0.00 β TestLogLevel β pg_timetable β
β β β β /internal β
β β β β /config β
β PASS β 0.00 β TestVersionOnly β pg_timetable β
β β β β /internal β
β β β β /config β
β PASS β 0.00 β TestNewCmdOptions β pg_timetable β
β β β β /internal β
β β β β /config β
β β β β β
β PASS β 0.00 β TestFormatter_Format_with_report_caller β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β TestFormatter_Format_with_report_caller_and_CallerFirst_true β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β TestFormatter_Format_with_report_caller_and_CustomCallerFormatter β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β TestInit β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β TestFileLogger β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β TestPgxLog β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β ExampleFormatter_Format_default β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β ExampleFormatter_Format_full_level β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β ExampleFormatter_Format_show_keys β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β ExampleFormatter_Format_hide_keys β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β ExampleFormatter_Format_sort_order β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β ExampleFormatter_Format_field_order β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β ExampleFormatter_Format_no_fields_space β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β ExampleFormatter_Format_no_uppercase_level β pg_timetable β
β β β β /internal β
β β β β /log β
β PASS β 0.00 β ExampleFormatter_Format_trim_message β pg_timetable β
β β β β /internal β
β β β β /log β
β β β β β
β PASS β 0.33 β TestPostgres β pg_timetable β
β β β β /internal β
β β β β /migrator β
β PASS β 0.22 β TestPending β pg_timetable β
β β β β /internal β
β β β β /migrator β
β PASS β 0.21 β TestBadMigrations β pg_timetable β
β β β β /internal β
β β β β /migrator β
β PASS β 0.03 β TestBadMigrations β pg_timetable β
β β β /bad_tx_migration β /internal β
β β β β /migrator β
β PASS β 0.03 β TestBadMigrations β pg_timetable β
β β β /bad_db_migration β /internal β
β β β β /migrator β
β PASS β 0.00 β TestMigratorConstructor β pg_timetable β
β β β β /internal β
β β β β /migrator β
β PASS β 0.00 β TestTableExists β pg_timetable β
β β β β /internal β
β β β β /migrator β
β PASS β 0.00 β TestMigrateExists β pg_timetable β
β β β β /internal β
β β β β /migrator β
β PASS β 0.00 β TestMigrateNoTxError β pg_timetable β
β β β β /internal β
β β β β /migrator β
β PASS β 0.00 β TestMigrateTxError β pg_timetable β
β β β β /internal β
β β β β /migrator β
β PASS β 0.00 β TestMigratorOptions β pg_timetable β
β β β β /internal β
β β β β /migrator β
β β β β β
β PASS β 85.75 β TestSamplesScripts β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 25.33 β TestNotifications β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 10.00 β TestTryLockClientName β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 10.00 β TestFailedConnect β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 10.00 β TestTryLockClientName β pg_timetable β
β β β /retry_locking β /internal β
β β β β /pgengine β
β PASS β 5.34 β TestHandleNotifications β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 1.00 β TestFireError β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 1.00 β TestLogHook β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.62 β TestMigrations β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.35 β TestSchedulerFunctions β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.32 β TestCopyFromFile β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.26 β TestCopyToFile β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.25 β TestInitAndTestConfigDBConnection β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.22 β TestGetRemoteDBTransaction β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.18 β TestInitMigrator β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.06 β TestSchedulerFunctions β pg_timetable β
β β β /Check_GetChainElements_funΡtion β /internal β
β β β β /pgengine β
β PASS β 0.06 β TestInitAndTestConfigDBConnection β pg_timetable β
β β β /Check_connection_closing β /internal β
β β β β /pgengine β
β PASS β 0.01 β TestSchedulerFunctions β pg_timetable β
β β β /Check_ExecuteSQLCommand_function β /internal β
β β β β /pgengine β
β PASS β 0.01 β TestInitAndTestConfigDBConnection β pg_timetable β
β β β /Check_timetable.cron_type_input β /internal β
β β β β /pgengine β
β PASS β 0.01 β TestInitAndTestConfigDBConnection β pg_timetable β
β β β /Check_timetable_tables β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestTryLockClientName β pg_timetable β
β β β /query_error β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExecuteSchemaScripts β pg_timetable β
β β β /Check_schema_scripts_if_everything_fine β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestIsAlive β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestLogChainElementExecution β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestTryLockClientName β pg_timetable β
β β β /no_schema_yet β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestTryLockClientName β pg_timetable β
β β β /locking_error β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestTryLockClientName β pg_timetable β
β β β /locking_successful β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestSelectChain β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestSelectChains β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExecuteCustomScripts β pg_timetable β
β β β /Check_ExecuteCustomScripts_if_everything_fine β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestCopyErrors β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestRemoveChainRunStatus β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExecuteMigrationScript β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExecuteCustomScripts β pg_timetable β
β β β /Check_ExecuteCustomScripts_if_error_returned β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestInsertChainRunStatus β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestDeleteChainConfig β pg_timetable β
β β β /Check_DeleteChainConfig_if_sql_fails β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExecuteCustomScripts β pg_timetable β
β β β /Check_ExecuteCustomScripts_for_non-existent_file β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExecuteCustomScripts β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestInitAndTestConfigDBConnection β pg_timetable β
β β β /Check_timetable_functions β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestFinalizeConnection β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExecuteSchemaScripts β pg_timetable β
β β β /Check_schema_scripts_if_error_returned β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestDeleteChainConfig β pg_timetable β
β β β /Check_DeleteChainConfig_if_everyhing_fine β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestDeleteChainConfig β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestSchedulerFunctions β pg_timetable β
β β β /Check_DeleteChainConfig_funΡtion β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExecuteSchemaScripts β pg_timetable β
β β β /Check_schema_scripts_if_error_returned_for_SELECT_EXISTS β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestSchedulerFunctions β pg_timetable β
β β β /Check_GetChainParamValues_funΡtion β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestSchedulerFunctions β pg_timetable β
β β β /Check_InsertChainRunStatus_funΡtion β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExecuteSchemaScripts β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestLogChainElementExecution β pg_timetable β
β β β /Check_LogChainElementExecution_if_sql_fails β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestGetRemoteDBTransaction β pg_timetable β
β β β /Check_connection_closing β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestGetRemoteDBTransaction β pg_timetable β
β β β /Check_set_role_function β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestGetRemoteDBTransaction β pg_timetable β
β β β /Check_reset_role_function β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestCancelledContext β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestMustTransaction β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExecuteSQLTask β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExpectedCloseError β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestExecuteSQLCommand β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestGetChainElements β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β PASS β 0.00 β TestSetRole β pg_timetable β
β β β β /internal β
β β β β /pgengine β
β β β β β
β PASS β 11.33 β TestRun β pg_timetable β
β β β β /internal β
β β β β /scheduler β
β PASS β 10.00 β TestChainWorker β pg_timetable β
β β β β /internal β
β β β β /scheduler β
β PASS β 5.00 β TestChainWorker β pg_timetable β
β β β /Check_chainWorker_if_everything_fine β /internal β
β β β β /scheduler β
β PASS β 5.00 β TestChainWorker β pg_timetable β
β β β /Check_chainWorker_if_cannot_proceed_with_chain_execution β /internal β
β β β β /scheduler β
β PASS β 4.00 β TestAsyncChains β pg_timetable β
β β β β /internal β
β β β β /scheduler β
β PASS β 1.06 β TestExecuteTask β pg_timetable β
β β β β /internal β
β β β β /scheduler β
β PASS β 1.01 β TestIntervalChain β pg_timetable β
β β β β /internal β
β β β β /scheduler β
β PASS β 1.01 β TestIntervalChain β pg_timetable β
β β β /Check_reschedule_if_everything_fine β /internal β
β β β β /scheduler β
β PASS β 0.00 β TestExecuteChain β pg_timetable β
β β β β /internal β
β β β β /scheduler β
β PASS β 0.00 β TestIntervalChain β pg_timetable β
β β β /Check_reschedule_if_self_destructive β /internal β
β β β β /scheduler β
β PASS β 0.00 β TestIntervalChain β pg_timetable β
β β β /Check_reschedule_if_context_cancelled β /internal β
β β β β /scheduler β
β PASS β 0.00 β TestExecuteChainElement β pg_timetable β
β β β β /internal β
β β β β /scheduler β
β PASS β 0.00 β TestSchedulerExclusiveLocking β pg_timetable β
β β β β /internal β
β β β β /scheduler β
β PASS β 0.00 β TestChainWorker β pg_timetable β
β β β /Check_chainWorker_if_context_cancelled β /internal β
β β β β /scheduler β
β PASS β 0.00 β TestShellCommand β pg_timetable β
β β β β /internal β
β β β β /scheduler β
β β β β β
β PASS β 0.01 β TestDownloadFile β pg_timetable β
β β β β /internal β
β β β β /tasks β
β PASS β 0.00 β TestTaskSendMail β pg_timetable β
β β β β /internal β
β β β β /tasks β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β STATUS β ELAPSED β PACKAGE β COVER β PASS β FAIL β SKIP β
βββββββββββΌββββββββββΌββββββββββββββββββββββββββββββββββΌβββββββββΌβββββββΌβββββββΌββββββββ
β PASS β 0.77s β pg_timetable/internal/api β 100.0% β 2 β 0 β 0 β
β PASS β 1.01s β pg_timetable/internal/config β 96.7% β 6 β 0 β 0 β
β PASS β 0.91s β pg_timetable/internal/log β 97.3% β 15 β 0 β 0 β
β PASS β 1.52s β pg_timetable/internal/migrator β 100.0% β 11 β 0 β 0 β
β PASS β 141.50s β pg_timetable/internal/pgengine β 89.6% β 59 β 0 β 0 β
β PASS β 28.26s β pg_timetable/internal/scheduler β 89.9% β 15 β 0 β 0 β
β PASS β 0.52s β pg_timetable/internal/tasks β 100.0% β 2 β 0 β 0 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ