Closed hoegaarden closed 4 years ago
/kind failing-test /priority important-soon /area release-eng
@hoegaarden -- Here's what I got, FWIW:
$ go test ./...
? k8s.io/release/cmd/blocking-testgrid-tests [no test files]
? k8s.io/release/cmd/krel [no test files]
? k8s.io/release/cmd/krel/cmd [no test files]
? k8s.io/release/cmd/kubepkg [no test files]
? k8s.io/release/cmd/kubepkg/cmd [no test files]
? k8s.io/release/cmd/release-notes [no test files]
ok k8s.io/release/pkg/command 0.020s
ok k8s.io/release/pkg/git 0.990s
ok k8s.io/release/pkg/kubepkg 1.754s
ok k8s.io/release/pkg/notes 0.356s
ok k8s.io/release/pkg/notes/internal 0.004s
? k8s.io/release/pkg/notes/notesfakes [no test files]
ok k8s.io/release/pkg/release 1.011s
ok k8s.io/release/pkg/util 1.003s
How would you propose organizing the tests?
How would you propose organizing the tests?
Not sure :) I have seen different approaches to separate different test types. Wanted to bring them up and compare them and start a discussion. Stay tuned.
SGTM! I've mentioned on a few calls that testing methodologies is not a strong suit of mine, so happy to have you to steer the convo.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten
/remove-lifecycle rotten
/assign @saschagrunert /milestone v1.19
I think our counterfeiter mocking approach works out pretty well to isolate the tests. We're still in a transition phase and some tests are connecting to the internet, which might cause API rate limit issues. I'll check what I can do for the kubepkg tests especially.
Thanks @saschagrunert!
Running
go test ./...
fails for the packagek8s.io/release/pkg/kubepkg
over here.This indicates IMHO that we should take more care about our tests and split them into different types (static, unit, integration, e2e).