Skip to content
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

The random Seed is not printed #4

Closed
edumarcal opened this issue Oct 23, 2019 · 2 comments
Closed

The random Seed is not printed #4

edumarcal opened this issue Oct 23, 2019 · 2 comments

Comments

@edumarcal
Copy link

edumarcal commented Oct 23, 2019

Briefing

When we passed the --randomizeAllSpecs flag, the test output seed is not printed. Accordingly, we cannot reproduce in which order of specifications they are executed through the --seed flag.

For more information on, see the following link: Spec-permutation

@jamillosantos jamillosantos self-assigned this Oct 23, 2019
@jamillosantos
Copy link
Collaborator

Oh, got it. You mean when running tests using Ginkgo cli right? I see. Never used it. I will fix it ASAP.

@jamillosantos
Copy link
Collaborator

After doing some testing, I think that printing the random seed on this library will not fulfill your request as good as you do it by your self.

The way I have to print the random seed is to implement it into the AnnounceSuite method of the Stenographer, which is called before each suite (that method has the randomSeed argument). So, printing it there means that you will get the same randomSeed printed before each suite, what I think it is not what you expect.

So, a better solution would be to use the github.com/onsi/ginkgo/config package, before invoking the macchiato, by using config.GinkgoConfig.RandomSeed.

I hope it helps.

I will be closing this issue and feel free to reopen and comment as you please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants