[wp-trac] [WordPress Trac] #41345: 'import' group tests fail using git repository
WordPress Trac
noreply at wordpress.org
Mon Jul 17 13:49:16 UTC 2017
#41345: 'import' group tests fail using git repository
-------------------------------+-----------------------------
Reporter: enrico.sorcinelli | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------------+-----------------------------
Recently I switched to `git` for contributing to WordPress core. And of
course, for convenience, I run tests under `git` tree.
In this situation, all tests pass with the exception of `import` group
tests, since they require WordPress Import plugin that doesn't live under
`git` working tree (these changesets [40532] and [40531] forced `import`
group tests to fail instead of skip and they seems to revert the [27349]).
In the `svn` tree this doesn't occur because of `svn:externals` set to
[[https://plugins.svn.wordpress.org/wordpress-importer/trunk/|wordpress-
importer]].
As workaround we could alternatively:
* launch `phpunit` tests with `--exclude-group import` option or we
{{{
#!bash
svn co https://plugins.svn.wordpress.org/wordpress-importer/trunk/
wordpress-importer
}}}
* under ''tests/phpunit/data/plugins/'' directory and `svn up` it at
regular basis, even if I think that the proposed patch would be a cleanier
approach.
Anyway, in https://make.wordpress.org/core/handbook/contribute/git/, a
notes about specific test actions above should be added.
PS: Probably there is, but I did not find a `git` repository for WordPress
Importer plugin in order to add as `submodule`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41345>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list