Gexec

Testing external processes with gexec — compile binaries with Build/BuildWithEnvironment/BuildIn and CleanupBuildArtifacts, start them with Start returning a *Session, await exit with the Exit matcher (Eventually(session).Should(Exit(0))), Wait/ExitCode, signal via Kill/Terminate/Interrupt/Signal and package-level KillAndWait/TerminateAndWait, and assert on session.Out/Err which are gbytes buffers (Say, Contents). Use when building, running, signaling, or asserting on subprocesses in Go tests.

onsi c2ccb96 5.2 KB Updated

File contents

onsi/gomega/tree/main/plugins/gomega/skills/gexec commit c2ccb96558

Frequently asked questions

npx skillmds@latest add onsi/gexec