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
Travis is not running the container tests. #66
Comments
|
Nice. I wonder if we should create the new phpunit* files in addition to the existing ones, so the existing ones can still be run separately. Or maybe the container phpunit* files, being an integration, should be moved up to tests/ and run from there, to include the actual unit tests. Then test-runners can get the full gamut of tests. Thanks for working on this @Beanow, please comment more as you continue working. |
|
The idea for moving the tests up one level was primarily so we only need one copy of all the vendor packages. If we can build the existing tests to use the same vendor folder we can have the best of both. Another option is to have variations only on the I do think that for TDD it makes sense to always run both tests, checking for unexpected side-effects is precisely one of the great benefits of automated tests in my experience. I'll have a look none the less. |
|
I've implemented the multiple My library now has 3 test suites you could run.
Please note your current working directory when running the script matters. |
|
This script is working well for us. Feel free to help yourself to a copy. |
|
@Beanow please see #72 . Feedback welcome :) . Discussion over google group https://groups.google.com/d/msg/auraphp/Dcxoigi13ss/HEjP3iJ_Wc8J |
|
For the record I have not forgotten this. I am working on a revised testing structure that, while it is not exactly what I like best, will cover this and perhaps other cases. Thanks for your continued patience. |
I've recently tried this out and a working setup can be found here:
https://github.com/Tuxion/DoctrineRest/tree/develop
Summary of what to change.
/test/unit/the/testfolder is the place to definephpunit.xml,bootstrap.php, etc.phpunit.xmlfile should have two directories for tests, both the container and unit tests.bootstrap.phpfile should take into account the new relative paths..travis.ymlfile should point to the new locations.The text was updated successfully, but these errors were encountered: