Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Support for plugin-dependent tests #156

Description

@ocean90

Has anyone some experiences with plugin-dependent tests and Travis CI?

xwp_filter_active_plugins_for_phpunit() has support for a WP_TEST_ACTIVATED_PLUGINS constant which looks fine, but I'm more interested on how to get the plugin installed during the build.

The install action is too early because the test suite gets installed on script via run_phpunit_travisci(). But I can't add something before or after because WP is installed on-the-fly, see https://github.com/xwp/wp-dev-lib/blob/master/check-diff.sh#L584.

So, what I need is something which gets called after WP is installed but before phpunit is executed.

Idea: Define a function after_wp_install in .dev-lib and in check-diff.sh do

if [ "$( type -t after_wp_install )" != '' ]; then
    after_wp_install
fi

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions