Opened 7 years ago
Closed 6 weeks ago
#42668 closed enhancement (fixed)
Remove WordPress Importer tests from default test suite
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Import | Keywords: | has-patch has-unit-tests commit |
Focuses: | Cc: |
Description
The importers were removed from Core in r14764, 8 years ago. But the tests are still located in the core test suite, and are run by default.
We should exclude these tests from running by default as a first step, as it means running 14 tests less.
Ultimately these tests should be migrated to the Importer plugin repository, where they can assist with development.
Attachments (1)
Change History (15)
#2
@
7 years ago
FWIW These should continue to be run in core until https://github.com/WordPress/wordpress-importer/issues/15 is fixed to move them over there IMHO.
Even then, running the tests with core might still be a good idea, although limiting it to 1 job instead of 5 wouldn't be a bad idea.
#3
@
8 months ago
Testing some code for #60569, I think it could be useful to run the importing tests in their own group on the WordPress-Develop CI to avoid order of operations issue for code that operates differently when importing vs during standard operations.
#5
follow-up:
↓ 6
@
5 months ago
- Keywords has-patch added
WordPress/wordpress-importer#15 was merged, but it's been 6 years now. An audit should be performed to ensure parity.
I had missed this ticket so I had opened #62167 to discuss moving the tests out of Core.
@dd32 Do you still see a benefit to continuing to run these tests in the context of WordPress Core? If so, it may be better to remove the tests from wordpress-develop
and use the test files in the plugin itself instead of maintaining them in two places.
#6
in reply to:
↑ 5
@
5 months ago
Replying to desrosj:
@dd32 Do you still see a benefit to continuing to run these tests in the context of WordPress Core? If so, it may be better to remove the tests from
wordpress-develop
and use the test files in the plugin itself instead of maintaining them in two places.
As we now have GitHub actions, I don't see the need to keep them here - as long as the importer tests run on a schedule (at least once a week?)
In one respect, It's nice that core will know when it breaks, but realistically.. I don't think there's a point in running tests in two different places.
A different ticket perhaps, but it'd be nice if core ran (again, once a week?) tests with a whole bunch of commonly used plugins active..
#7
@
5 months ago
- Milestone changed from Awaiting Review to 6.8
Related: https://core.trac.wordpress.org/ticket/61530?replyto=83#comment:79. Lets try doing this in WP 6.8.
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
8 weeks ago
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
6 weeks ago
This ticket was mentioned in PR #8269 on WordPress/wordpress-develop by @desrosj.
6 weeks ago
#11
- Keywords has-unit-tests added
This removes the tests from Core that rely on the presence of the WordPress Importer.
These have been running in https://github.com/WordPress/wordpress-importer for several years now, and it eliminates the need to download the plugin before every run of the Core test suite.
Trac ticket: https://core.trac.wordpress.org/ticket/42668
#12
@
6 weeks ago
I've created a PR for removing the all tests from wordpress-develop except for the ones that cover get_importers()
, which is shipped in Core.
There is an accompanying PR upstream in the plugin repo to sync some changes that did not make their way over, and introduce a weekly schedule
event to ensure the tests continue to run: https://github.com/WordPress/wordpress-importer/pull/181.
The
wordpress-importer
import plugin is imported into our Travis CI setup and the tests are run in each CI jobSee: https://core.trac.wordpress.org/browser/trunk/.travis.yml#L41