I have folder structure somewhat like this.
├── executor
| ├── executor_test.go
| |── executor.go
| |--excutor_mock.go
| |--errors.go
| |--app.go
├── _includes
| ├── xyz.go
| └── abc.go
├──vendor
executor_test.go contains all the unit test cases for executor.go.
So when i run go test --cover ./... Its shows me the coverage package wise which is good but i also want to exclude errors.go , excutor_mock.go and app.go in executor folder from showing up in go test --cover ./....So is there a way to exclude them?
Aucun commentaire:
Enregistrer un commentaire