require_once(DIR . '/vendor/autoload.php'); - there is simple composer autoload for Pest - only Pest. after composer require pestphp/pest --dev --with-all-dependencies
add_action and WP_CLI - there is just simple TDD for simple WP & WP CLI.
and next - the part of pest code
If I comment Pest part - all good - and working fine for base TDD
But I want Pest part for better testing of WordPress plugins.
Hi everyone!
Thank you for great test tools.
I have some strange question) And I will be grateful for the answers.
I like Laravel's approach running tests like
php artisan test
And I would like to make similar tools for WordPress via WP CLI. Kind of
php wp test
I have some problem.
I made simple wrapper like:
Where:
composer require pestphp/pest --dev --with-all-dependencies
If I comment Pest part - all good - and working fine for base TDD
But I want Pest part for better testing of WordPress plugins.
If I run Pest part I get errors:
And I can't find solution.
Any ideas?
I would like to run Pest test by WP CLI