Hi Jerome,

Have you tried to parallelize the tests?

t.Run(tc.name, func(t *testing.T) {
    t.Parallel()
    // your test
})


Best Regards,
Stephane

On Tue, Oct 5, 2021 at 2:08 PM Jérôme LAFORGE <jerome.lafo...@gmail.com>
wrote:

> Hello,
> I want to know if someone has already think about to split automatically
> (by configuration with go test -split 50) a same test table driven (more
> specially when the table is huge e.g. > 300 and so it takes time to
> execute) into different test runs in order to split the run on each
> available CPU (reducing execution time thanks to more parallelism).
>
> For now, we have to split manually all huge test table driven into
> different test packages. But regarding to you, can it be acceptable feature
> by modifying the https://pkg.go.dev/testing#T.Run function or somewhere
> else?
>
> Thx in adv,
> Best
> Jérôme
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/6baa7256-93de-4f36-9959-82e7cb42c602n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/6baa7256-93de-4f36-9959-82e7cb42c602n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAGZeQSKs-O%3DwKY4qUG1WBtd6WXaagH3nYNOHt_nCw%3D%2BP3NavOA%40mail.gmail.com.

Reply via email to