I would like to separate my tests into different test suites. The first one is the regular unit tests and the second one is tests that might fail from time to time (they include external web services).
The ways to do this go that I have found are
- Use build tags
- Provide a list of files to go test
- Use the -run flag and a regex of test method names
However none fits my need:
1.
I'm not happy with it as if I don't want to run the unit tests in the second suite, then I have to add a build-flag to my unit tests as well
2.
All files have to be in the same directory. I could put all those tests in one directory, but I want to keep my test files where they belong from a functional view
3.
Same problem as 2. everything has to be in the same directory
Am I missing some option here?