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

Eris doesn't report seed if when using Facade #111

Open
bekh6ex opened this issue Sep 18, 2017 · 1 comment
Open

Eris doesn't report seed if when using Facade #111

bekh6ex opened this issue Sep 18, 2017 · 1 comment

Comments

@bekh6ex
Copy link

bekh6ex commented Sep 18, 2017

There is method on ErisTrait

    /**
     * @after
     */
    public function erisTeardown()
    {
        $this->dumpSeedForReproducing();
    }

That dumps the seed in case of test failure.

This method is never called if Facade is used instead of PHPUnit integration, so there is no way to find out the seed with which tests failed on CI system.

@giorgiosironi
Copy link
Owner

I think here we would need to print $this->seed rather than the dumpSeedForReproducing() method, as the latter is PHPUnit-specific.
Not knowing what is calling Facade I would then expose $this->seed with a TestTrait getter, which will be available on Facade automatically. Is that what you are looking for?

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

3 participants