-
-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JUnit reporter does not create directory before creating file. #554
Comments
This will be fixed in v2 |
Migrating to v2 but still having this issue
|
hey - you can use: ./bin/mybinaryfile.test --ginkgo.v --ginkgo.fail-fast --ginkgo.junit-report=report --ginkgo.focus='my desired tests' --ginkgo.output-dir=/tmp/artifacts
|
Thanks for the hint :) . Sadly something did not work. Running this script: echo "Ginkgo version: " `ginkgo version`
./bin/mybinaryfile.test --ginkgo.v --ginkgo.fail-fast --ginkgo.output-dir=/tmp/artifacts --ginkgo.junit-report=report --ginkgo.focus='my desired tests' Got this: Ginkgo Version: Ginkgo Version 2.1.4
flag provided but not defined: -ginkgo.output-dir
Controlling Test Order
--ginkgo.seed [int] (default: randomly generated by Ginkgo)
The seed used to randomize the spec suite.
--ginkgo.randomize-all
If set, ginkgo will randomize all specs together. By default, ginkgo only
randomizes the top level Describe, Context and When containers.
.... this continue with all the supported flags |
dump, so sorry. I was moving too fast when I replied. the ginkgo -v -fail-fast -junit-report=report -focus='my desired tests' -output-dir=/tmp/artifacts ./bin/mybinaryfile.test You're now probably thinking "that sounds incredibly dumb" which... fair. what's happening here is the workflow is optimized for running multiple suites that each generate a report and then collating those reports into a single file (or a set of files) all in one location. That collation is done by the cli (it has to be - each suite is a separate |
When call
RunSpecsWithCustomReporters
with not current directory and it doesn't exist. Ginkgo print an error and stop running:I can produce this issue by this code below:
I have workaround solution by called
mkdir
before run spec. But I think it would be nice if ginkgo can create directory before create a filename.The text was updated successfully, but these errors were encountered: