kubevirt: `./tools` folder fails to build with unit tests that are never triggered
What happened:
As @akalenyu mentions in this comment, ./tools fails to build:
kubevirt/tools/util/marshaller_test.go:32:195: not enough arguments in call to components.NewHandlerDaemonSet
In addition, as he’s pointing out, these tests are not attempted to ever run: https://github.com/kubevirt/kubevirt/blob/941b04cb9f90745ae2038b13c8bb82eea55a16dd/hack/bazel-test.sh#L7
To add an insult to injury, these are lacking the *_suite_test.go that’s required to make these tests runnable.
What you expected to happen:
The tests should either be able to build and run via make test or removed.
How to reproduce it (as minimally and precisely as possible):
Trying to build ./tools
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 26 (17 by maintainers)
Oh okay, thankyou!
You can use
make generateto auto-create the*_suite_test.gofile. This should help streamline the process of setting up the necessary test files for the./toolsdirectory. If you encounter any issues or need further assistance, feel free to ask!To continue talking to Dosu, mention @dosu.