[bug] Tests exit successfully even if unit tests fail #771
Labels
area:go
Issue related to the Go ecosystem
area:tests
An issue with tests (unit, e2e, etc.)
type:bug
Something isn't working
Describe the bug
The golang builder makes an Exec syscall directly. This causes tests that call
GoBuild.Run
to cause the test runner to exit prematurely as the original test runner's process context is overwritten.Currently, even if tests fail the process executed Exec syscall returns successfully so no error code is returned and
go test
exits successfully. This masks unit test errors and is highly unintuitive.To Reproduce
Create a failing test and run
go test -v ./...
The text was updated successfully, but these errors were encountered: