onsi / ginkgo

A Modern Testing Framework for Go
http://onsi.github.io/ginkgo/
MIT License
8.12k stars 644 forks source link

How do I specify the build path when I use `ginkgo build` ? #1288

Closed zc2638 closed 9 months ago

zc2638 commented 9 months ago

Run ginkgo build test/e2e

Actual: will be generated at test/e2e/e2e.test

Expect: I can specify the build path

onsi commented 9 months ago

hey there,

you can't specify a different output path. you can use go test -c with -o if you'd like to specify the output path - ginkgo build simply uses that under the hood.

zc2638 commented 9 months ago

Thanks, I got what I expected using go test -c <Package Path> -o <Output Path>