ginkgo icon indicating copy to clipboard operation
ginkgo copied to clipboard

-exec support for `ginkgo run`

Open thediveo opened this issue 3 years ago • 3 comments

go test -exec sudo ./... allows running the tests binary(s) via another binary such as sudo, instead of running them directly. This allows running tests which require root privileges without the need to compile the test binaries as root. Would it be possible to support -exec as go test -exec foo does?

thediveo avatar Dec 21 '21 16:12 thediveo

hey @TheDiveO sorry for the delay.

yes I imagine ginkgo -exec would be relatively straightforward to implement. I can add this to the 2.1 docket and hope to ship 2.0 asap.

onsi avatar Dec 29 '21 21:12 onsi

Sorry, I totally forgot about this. I'm going through and culling old/resolved issues but will keep this one around and try to get to it.

onsi avatar Nov 16 '22 03:11 onsi

That's blocking me from using ginkgo directly with some of its features especially in pipelines, but only via go test -exec sudo ...

thediveo avatar Nov 17 '22 19:11 thediveo