← Back to issue list

go plugin: Add flag to run tests during build phase

View original Github issue

Metadata

Project
craft-parts
Number
#1493
Type
issue
State
open
Author
steinbro
Labels
Created
2026-03-12 00:14:37+00:00
Updated
2026-03-12 00:15:22+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Add support to the go plugin for a `enable-checks` build attribute. When enabled, the final build command executed by the plugin should be `go test` with the proper arguments to run unit tests on the build artifact. Add a test case for the go plugin to confirm the new final command is added. Update the build attributes section of the go plugin documentation to describe the new parameter. ### Why it needs to get done Users should be able to run unit tests as part of their build without needing to specify an `override-build` script.

Evaluation history

No evaluation history available.