-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Add winter:test command #202
Conversation
@RomainMazB it's definitely possible to get the output happening in real-time - see the Dusk command class here, which does the same thing for Dusk tests: https://github.com/wintercms/wn-dusk-plugin/blob/main/console/Dusk.php. I would prefer that the output be in real-time if possible. The key is to use the |
@bennothommo sure, I'd definitely prefer too. Thanks for pointed out how to do this, I'll definitely implement this |
Might be nice to have it as |
Ok, improvements made. A quick view of the final results. |
Co-authored-by: Luke Towers <github@luketowers.ca>
@RomainMazB does the core tests differentiate between the CMS tests and the library tests? @bennothommo should we have a way to trigger them separately or together? |
@LukeTowers we could define all the tests as separate suites in the We used to combine the library and core tests, but I separated them during the L6 update because tests were failing when core PRs were relying on unmerged library PRs. |
Co-authored-by: Ben Thomson <ben@abweb.com.au>
Co-authored-by: Ben Thomson <ben@abweb.com.au>
Co-authored-by: Ben Thomson <ben@abweb.com.au>
Co-authored-by: Ben Thomson <ben@abweb.com.au>
Co-authored-by: Ben Thomson <ben@abweb.com.au>
Co-authored-by: Ben Thomson <ben@abweb.com.au>
…ck to phpunit.xml.dist file
In the latest commit, we can now pass a custom configuration file using If none is defined, it looks for Need precision about my comment on @bennothommo review about |
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
I've made a few changes to improve the arguments passthrough to phpunit, there is an issue where if phpunit arguments are passed before the command arguments then the command args aren't parsed. Seems to be an issue from |
@LukeTowers @bennothommo. The issue is not directly the fact that we pass a PHPUnit argument before This makes the options to not be correctly set and runs the command without any options at all. I'm afraid that we won't be able to allow phpunit options before the I've added a section in the documentation emphasizing the fact that phpunit options should be passed after the command's options. which works well: |
No need to include docblock comments for information provided by type hints unless additional comments are made that justify a docblock comment
* develop: (25 commits) Support embedded data URIs in the list image column type Make some adjustments to the readme content Update banner in readme Add new GitHub banner Documentation with icons (#347) Limit options shown in group filter, apply scope when retrieving filtered options Add Exception on wrong relation type in relation formwidget (#334) Redesigned color picker widget (#324) Add winter:test command (#202) Use the correct backend timezone config key (#337) Get changelog only of the current branch Fix Markdown editor sizing issue on Chrome. Check overrides for parent locale when compiling language files (#242) Fixing commas in English translation files (#305) Added Latvian translations for Allowed IP messages (#304) Add missing filter translations (#303) Clean up newlines Update Russian language (#302) Fix issue present in overriding RelationController partials using the default code Maintenance Allowed IP list (#147) ...
First of the console command discussed here #201
Accepts any review from anyone out there.
I did not found how it would be possible to display the phpunit running test. As of today it runs the tests "silently" and then output the results.
plugin-test-command.mp4