Closed mfridman closed 1 year ago
Going to merge this as-is, but would be nice to get color support. I don't love the output, but will wait for feedback:
[PASS] 0.51s github.com/pressly/goose/v4/internal/migrationstats
[PASS] 0.68s github.com/pressly/goose/v4/internal/sqlparser
[FAIL] 2.82s github.com/pressly/goose/v4
[FAIL] 0.46s github.com/pressly/goose/v4/tests/e2e/clickhouse
[FAIL] 0.67s github.com/pressly/goose/v4/tests/e2e/mysql
[FAIL] 0.56s github.com/pressly/goose/v4/tests/e2e/postgres
[FAIL] 0.78s github.com/pressly/goose/v4/tests/e2e/vertica
[FAIL] 1.01s github.com/pressly/goose/v4/tests/gomigrations/error
[FAIL] 1.04s github.com/pressly/goose/v4/tests/gomigrations/success
Thanks! A touch of color in pass/fail/skip would be nice, yes. :+1:
This PR adds a
-progress
flag, which enables printing Package-level summary output as tests are still running.For example, the PASS|FAIL|SKIP lines are printed as soon as the package tests are finished. This is useful for long-running test suites with a lot of output where
-progress
is too noisy.