-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
increase coverage on integration tests #120
Conversation
Looks like its trying to get coverage from the fakes: https://coveralls.io/builds/39429875/source?filename=pkg%2Ffluxops%2Ffluxopsfakes%2Ffake_flux_handler.go I've seen there is a ignore option in |
@luizbafilho go-acc can use any flags from go test. I have it set to test every go file in the dir. I should add something to skip those though. Good catch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\o/
test/acceptance/test/utils_test.go
Outdated
) | ||
|
||
func TestFileExists(t *testing.T) { | ||
require.True(t, FileExists("utils.go")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kind suggestion. It would be great to have a file used specifically for this test. In case the rare case utils.go changes name. There are some methods to create temp files like this:
tempFile, err := ioutil.TempFile("", "")
os.Remove(tempFile.Name())
Then we don't need to rely any external resources to test this function 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is a very valid point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I looked it over and this looks like it is accurate on its coverage.