Skip to content

Instantly share code, notes, and snippets.

@alexmazaltov
Last active October 7, 2020 13:59
Show Gist options
  • Save alexmazaltov/56a9e7ddafae4e552c7cf8ea2b05ad67 to your computer and use it in GitHub Desktop.
Save alexmazaltov/56a9e7ddafae4e552c7cf8ea2b05ad67 to your computer and use it in GitHub Desktop.
snippet to move folder and create non existing folders in the provided path
mv ./web/sites/report/ `mkdir -p ./web/sites/phpunit/ && echo $_`
#It will move whole folder located at path ./web/sites/report/ to the new location
#At the result folder report would be located on the new path inside parent folder phpunit
# command mkdir -p creates non existinf folders in provided path ./web/sites/phpunit/
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="web/core/tests/bootstrap.php"
verbose="true"
>
<php>
<env name="SIMPLETEST_BASE_URL" value="http://localhost"/>
<env name="SIMPLETEST_DB" value="mysql://user:passwd@db_hostname/db_name"/>
</php>
<testsuites>
<testsuite name="drupal-composer-project tests">
<directory>./web/modules/custom</directory>
<exclude>./web/modules/custom/custom_module/vendor/*</exclude>
</testsuite>
</testsuites>
<logging>
<log type="coverage-html" target="./web/sites/report" lowUpperBound="35" highLowerBound="70"/>
</logging>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory>./</directory>
</whitelist>
</filter>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment