summaryrefslogtreecommitdiffstats
path: root/RoboFile.php
diff options
context:
space:
mode:
Diffstat (limited to 'RoboFile.php')
-rw-r--r--RoboFile.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/RoboFile.php b/RoboFile.php
new file mode 100644
index 0000000..9245e1b
--- /dev/null
+++ b/RoboFile.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * This is project's console commands configuration for Robo task runner.
+ *
+ * @see http://robo.li/
+ */
+class RoboFile extends \Robo\Tasks
+{
+ public function test () {
+ $res = $this->taskExec('phpunit --coverage-html test/output/report --bootstrap test/unit/bootstrap.php ./test/unit')->run();
+
+ // print message when tests passed
+ if ($res->wasSuccessful()) $this->say("All tests passed");
+
+ return $res();
+ }
+}