Skip to content

No phpunit as a dependency? #26

@dingo-d

Description

@dingo-d

I am a bit puzzled at the setup of this suite.

First what exactly is the prefix that your plugin uses in the database?

The installation recognized I have tests directory (since I'm on VVV), but then it symlinked the plugin to the tests directory and I got

ln: /Users/infinum-denis/vagrant-local/www/wordpress-develop/src/wp-content/plugins/my-plugin: No such file or directory

Because my plugin is located in a directory where I am building it (not the test one).

Also, how come phpunit isn't set as a dependency? Because I can see it's not installed in the vendor folder, and I am getting

zsh: command not found: phpunit

Thanks!

EDIT:

Once I installed phpunt (6.5) and ran vendor/bin/phpunit I get error on the require_once in the bootstrap.php because the path of the plugin is wrong (test assumes it's in the test folder, and it's not).

Is the workaround for this to just put it in the test folder or?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions