I am using Ginkgo to execute some relatively long-running integration tests. Interspersed with my test output is the occasional warning that my tests are taking too long to execute:
• [SLOW TEST:30.000 seconds]
Is there a way to disable these warnings when running Ginkgo through the standard Go testing library? The documentation mentions a parameter (--slowSpecThreshold=TIME_IN_SECONDS
) for the Ginkgo test runner, but doesn't seem to mention how to achieve the same programmatically.
With Ginkgo v2, the
config.DefaultReporterConfig
variable has been deprecated (see also the migration guide) and cannot be used anymore to configure the "slow spec threshold".To configure said threshold in Ginkgo v2, pass a
types.ReporterConfig
parameter into yourRunSpecs
call: