Editing: phpunit.xml
<phpunit bootstrap="tests/bootstrap.php" backupGlobals="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" > <php> <env name="PLUGIN_FILE" value="hello-plus.php"/> <env name="WP_TESTS_DIR" value="/tmp/wordpress-tests-lib"/> <env name="WP_TESTS_ELEMENTOR_DIR" value="/tmp/elementor/elementor.php"/> </php> <testsuites> <testsuite name="hello-plus"> <directory prefix="test-" suffix=".php">./tests/phpunit/hello-plus/</directory> </testsuite> </testsuites> <filter> <whitelist> <directory suffix=".php">./</directory> <exclude> <directory>.github</directory> <directory>assets</directory> <directory>bin</directory> <directory>build</directory> <directory>node_modules</directory> <directory>vendor</directory> <directory>tests</directory> </exclude> </whitelist> </filter> </phpunit>
Save
Back