Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upcmd/go: [modules + integration] go mod test, execute all the unit tests of a module #31324
Labels
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This report is part of a series, filled at the request of @mdempsky, focused at making Go modules integrator-friendly.
Please do not close or mark it as duplicate before making sure you’ve read and understood the general context. A lot of work went into identifying problems points precisely.
Needed feature
Go needs an official
go mod test
command that executes all the unit tests of a particular Go module, to make sure it is healthy.Constrains
module path
, ormodule path
+module version
, orfilesystem path
of a specificmod
module descriptorgo.mod
file at the root of an unpacked module tree, ormod
file inside a goproxy hierarchygo test
flags should applygo get
download from the internetMotivation
Go modules are wonderful and exciting, until you realise they only deal with the code download part. One stills need to dissect individual Go packages in the next stages of a CI/CD Go-related job.
The Go module concept should be extended to the rest of Go code processing phases.