lundi 18 mars 2019

How to exclude or skip specific directory while running 'go test'

go test $(go list ./... | grep -v /vendor/) -coverprofile .testCoverage.txt

I am using the above command to test the files but there is 1 folder with the name "Store" that I want to exclude from tests. How it can be done?

Aucun commentaire:

Enregistrer un commentaire