cweill / gotests

Automatically generate Go test boilerplate from your source code.
Apache License 2.0
4.92k stars 346 forks source link

Ability to exclude generated files #163

Open marema31 opened 3 years ago

marema31 commented 3 years ago

Hello

Would it possible to avoid generating tests for generated files ?

The simplest ways for me would be to look for the regex ^// Code generated .* DO NOT EDIT.$
documented here : https://pkg.go.dev/cmd/go/internal/generate.

If you have recommendation of the best way to do it, I can try to propose a PR if you like.