Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Run unit tests from wp-hammer folder #10

Description

@iandunn

I may just be doing something wrong, but it seems like I have to run the unit tests from the ~/.wp-cli/packages folder, since _manually_load_plugin() assumes that's the current folder. If I run it from the wp-hammer folder, it fails:

> phpunit
Installing...
Running as single site... To run multisite, use -c tests/phpunit/multisite.xml

Warning: require_once(/Users/iandunn/.wp-cli/packages/vendor/ivankruchkoff/wp-hammer/vendor/autoload.php): failed to open stream: No such file or directory in /Users/iandunn/.wp-cli/packages/vendor/ivankruchkoff/wp-hammer/tests/bootstrap.php on line 11

Running it from the packages folder works, but requires manually passing the config file (phpunit -c vendor/ivankruchkoff/wp-hammer/phpunit.xml), instead of being able to just run phpunit.

It seems like the latter would be more convenient; is there a reason it's setup to use the former instead?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions