vendredi 2 juin 2017

Are tests executed in parallel in Go or one by one?

I have a Go file with unit tests and some of them use a common variable. Another global variable is used in the code that I'm testing. All of this can cause a problem.

In Go when we execute tests that are located in the same file how does they run? In parallel or next one will not start before previous one is finished ?

Aucun commentaire:

Enregistrer un commentaire