-
Notifications
You must be signed in to change notification settings - Fork 165
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
FIX Add reports and siteconfig tests #119
Conversation
Rebase please. |
This file is the default I think that this should only contain I assume that our own test runs ignore the paths specified in this file? If not, can we please have a separate file, such as |
This change was "needed" to make sure https://github.com/silverstripe/cow tested all the modules when doing a release. The is the dist file meant to be more of an example or something for devs to rely upon? I'd expect a dev to create their own non-dist version... |
In that case, cow is wrong and should be fixed. If we're making life hard for our users to make it easier for a cow, we've got it backward. phpunit.xml.dist is used as the default config file for phpunit and should specify the test configuration for the project in question, which in this case is the newly minted SilverStripe site created by the create-project command, or the unpacking of a SilverStripe zip or tar.gz. |
Just for my own clarification: you're saying that you don't think the test suites of the included modules should be part of this configuration for a new project? |
01668d4
to
c8cc805
Compare
Yes, that's what I'm saying. Admittedly I have seen a lot of people (including myself and other members of the core team) have set up project builds to run all module tests in the past, but I think this is a bad idea for the following reasons:
I can see a few areas where we would want to include module tests in the project builds:
|
OK - well, I'm happy with trimming down the dist file, but maybe that's a master change? I think seeing as how we already test most of the core suite, we should probably add these to make it consistent with the rest of 3 and then strip it out for 4. However, I'm not too bothered - feed free to close or merge depending on preference! |
Could we still have a separate phpunit.xml that runs core tests, but isn't included by default by nature of a different file name? The default phpunit.xml should still point to user-tests. |
Again, happy for someone to close this if that's preferred. Given 3.x distributes with testing the included modules, I think this should go into 3 and then we remove all from master - but, again, not that fussed |
I think there's limited value in a webroot-level So +1 for closing this PR, and removing these entries:
-1 against removing |
If we do this, what's the best way for us to deterministically run all core tests during release? a |
I've raised a placeholder issue at silverstripe/cow#13 |
I don't think it should so much be a specific phpunit.xml file as specific pre-build test command. That will let us cover, for example, javascript tests if we wished to. I would have a look into whether custom composer.json |
No description provided.