You have to set global variable WP_TESTS_DIR = <PHP_UNIT_PATH> and set the wp-tests-config.php file
If you are struggling with wordpress installation and PHPUNIT path, You can download wordpress from https://develop.svn.ww.wp.xz.cn/trunk/
After this is setup, no need to run /bin/install-wp-tests.sh file.
You can now directly run the unit test cases using phpunit command in the plugin root.
-
This reply was modified 9 years, 1 month ago by Arvind Kala.