samedi 1 décembre 2018

Run go tests except from one package

I’ve the following project structure and I want to run go test exclude option to run the test

e.g. Command to Run all tests except the test in the cmd package (I’ve more then 3 packages , the struct below is a simple example)

myGithubProject/ |---- cmd |---- -command |---- -hello.go |---- -hello_test.go |---- internal |---- -fs.go |---- -fs.go |---- -fs_test.go |---- -log |---- -log.go |---- -log_test.go main.go

Aucun commentaire:

Enregistrer un commentaire