I am testing an empty test in my project go:
panic: url not set
goroutine 1 [running]:
gitlab.com/xxx/common/metadata.init.0()
This a environement variable that I need to have in order to run the whole project, but here, in my empty test, I don't make any reference to it.
So, what I understand is to test, go must compile the whole code, so for any empty test, I should give all the environnement variables, even if I don't need them in my test, is it correct ?
Aucun commentaire:
Enregistrer un commentaire