How to do unit testing using PHPUnit in wordpress? -
how can phpunit testing in wordpress website ? including theme , plugin everything.
i have setup phpunit , included wp-load.php file functions , classes access.
is correct way ? or there better way of doing unit testing in wordpress.
have read https://make.wordpress.org/core/handbook/testing/automated-testing/phpunit/ ? when writing unit testing should ask yourself: want function do? , write test based on that.
to answer question if there correct way write unit testing, think it's not. matter on how smart write tests. go have @ new unit testing, how write great tests? inspiration. luck!
Comments
Post a Comment