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

Use of mikey179/vfsStream for Log tests breaks module builds #651

Closed
acoulton opened this issue Dec 16, 2015 · 3 comments
Closed

Use of mikey179/vfsStream for Log tests breaks module builds #651

acoulton opened this issue Dec 16, 2015 · 3 comments

Comments

@acoulton
Copy link
Member

#563 introduced a composer require-dev for mikey179/vfsStream to allow virtual filesystem tests of the log writers.

Unfortunately this breaks the builds for the other modules (eg https://travis-ci.org/kohana/image/jobs/97191751) because those builds include all the kohana/core tests (to check the module hasn't broken anything in core, I guess) but don't pick up the require-dev dependency from this package. Similarly, the kohana/kohana build is also going to fail for the same reason.

I think the best solution is to require mikey179/vfsStream in kohana/unittest - the same way we handle phpunit, so it's always present in development environments for any module that has a require-dev on kohana/unittest.

Alternatively we could modify the test suite to check if vfsStream is present and skip those tests if not.

Thoughts?

@enov
Copy link
Contributor

enov commented Dec 17, 2015

I think the best solution is to require mikey179/vfsStream in kohana/unittest - the same way we handle phpunit, so it's always present in development environments for any module that has a require-dev on kohana/unittest.

👍 that's the practical solution.

@rjd22
Copy link

rjd22 commented Dec 18, 2015

👍

acoulton added a commit to kohana/unittest that referenced this issue Dec 18, 2015
Per kohana/core@430a1d2 the vfsStream package is now required so that
unit tests that interact with the filesystem (Log_File initially) can use a 
virtual in-memory filesystem for easier setup and test independence.

Requiring this in kohana/unittest resolves kohana/core#651 by ensuring it's
present for all module builds (which also run the kohana/core tests).
acoulton added a commit to kohana/unittest that referenced this issue Dec 18, 2015
Require mikey179/vfsStream package for unit testing

Fixes kohana/core#651
@acoulton
Copy link
Member Author

Fixed by kohana/unittest#60

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

No branches or pull requests

3 participants