rewrite tests without ginkgo - #309
Conversation
|
Probably needs some further cleaning up; this was a draft I had. |
There was a problem hiding this comment.
Pull request overview
Migrates core tests from Ginkgo/Gomega to Go’s testing package with Testify while incorporating the dependency updates from stacked PR #308.
Changes:
- Rewrites test suites and helpers using standard subtests and Testify.
- Replaces Ginkgo-based CI execution with
go testrace and coverage reporting. - Updates Logrus, Testify, YAML, and resulting transitive dependencies.
Reviewed changes
Copilot reviewed 19 out of 31 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/ci.yml |
Removes Ginkgo installation from CI. |
.golangci.yml |
Removes obsolete dot-import exception. |
Makefile |
Replaces Ginkgo test target with go test. |
go.mod |
Removes Ginkgo/Gomega and updates dependencies. |
go.sum |
Refreshes root dependency checksums. |
pkg/adaptation/suite_test.go |
Migrates adaptation test helpers to Testify. |
pkg/net/multiplex/mux_suite_test.go |
Rewrites multiplexer tests and concurrent helpers. |
pkg/runtime-tools/generate/generate_suite_test.go |
Converts generator tests to table-driven subtests. |
plugins/device-injector/go.mod |
Updates module dependencies. |
plugins/device-injector/go.sum |
Refreshes module checksums. |
plugins/differ/go.mod |
Updates Logrus. |
plugins/differ/go.sum |
Refreshes module checksums. |
plugins/hook-injector/go.mod |
Updates dependencies. |
plugins/hook-injector/go.sum |
Refreshes module checksums. |
plugins/logger/go.mod |
Updates Logrus and indirect dependencies. |
plugins/logger/go.sum |
Refreshes module checksums. |
plugins/network-device-injector/go.mod |
Updates Logrus dependencies. |
plugins/network-device-injector/go.sum |
Refreshes module checksums. |
plugins/network-logger/go.mod |
Updates Logrus. |
plugins/network-logger/go.sum |
Refreshes module checksums. |
plugins/rdt/go.mod |
Updates test and logging dependencies. |
plugins/rdt/go.sum |
Refreshes module checksums. |
plugins/template/go.mod |
Updates Logrus dependencies. |
plugins/template/go.sum |
Refreshes module checksums. |
plugins/ulimit-adjuster/go.mod |
Updates test and logging dependencies. |
plugins/ulimit-adjuster/go.sum |
Refreshes module checksums. |
plugins/wasm/go.mod |
Updates indirect Logrus version. |
plugins/wasm/go.sum |
Refreshes module checksums. |
plugins/writable-cgroups/go.mod |
Updates test and logging dependencies. |
plugins/writable-cgroups/go.sum |
Refreshes module checksums. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
klihub
left a comment
There was a problem hiding this comment.
@thaJeztah 🙏 Thank you for this ! I'd be happy to take this in already as this, and then do any further cleanup we might want to do with with subsequent PRs. I think, since any PR which touches or adds tests will almost inevitably conflict with this, the earlier we take this in the better.
PS. Gotta love that branch name...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
OK; fixed the CoPilot comment, and made a small change to the I think this is in a reasonable shape now; PTAL 👍 |
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Uh oh!
There was an error while loading. Please reload this page.