Skip to content

Instantly share code, notes, and snippets.

@legovaer
Last active June 4, 2016 06:58
Show Gist options
  • Save legovaer/753c489c1f16dc162dc8d3a9a662c05a to your computer and use it in GitHub Desktop.
Save legovaer/753c489c1f16dc162dc8d3a9a662c05a to your computer and use it in GitHub Desktop.
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index 30b3aab..5fe0ea5 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -4,6 +4,10 @@
* This script runs Drupal tests from command line.
*/
+$path = __DIR__ . "/../vendor/phpunit/phpcov/src/lib";
+set_include_path(get_include_path() . PATH_SEPARATOR . $path);
+require "autocoverage.php";
+
define('SIMPLETEST_SCRIPT_COLOR_PASS', 32); // Green.
define('SIMPLETEST_SCRIPT_COLOR_FAIL', 31); // Red.
define('SIMPLETEST_SCRIPT_COLOR_EXCEPTION', 33); // Brown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment