ginkgo icon indicating copy to clipboard operation
ginkgo copied to clipboard

Allow turning on reporter via env variables

Open roopakv opened this issue 2 years ago • 1 comments

While we use the ginkgo framework we do not use the Ginkgo CLI.

in V2 we are forced to use the CLI to support junit reporters. Would be nice to be able to enable reporters without needing to switch to the CLI

roopakv avatar Feb 28 '22 06:02 roopakv

Hey there,

I generally recommend using the CLI - it enables additional ginkgo functionality that you can't get from go test - and will not be adding environment-based configuration.

You can add a ReportAfterSuite node that calls reporters.GenerateJunitReport() depending on the presence of an environment variable if you want to implement this in your suite yourself.

onsi avatar Feb 28 '22 12:02 onsi