From 65b4926e0dda63de1a0e834f26d18842a36a31c6 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 27 Aug 2020 20:34:36 +0100 Subject: [PATCH] Step 3: Add PHPUnit command --- .ddev/commands/web/phpunit | 7 +++++++ .gitignore | 1 + 2 files changed, 8 insertions(+) create mode 100755 .ddev/commands/web/phpunit diff --git a/.ddev/commands/web/phpunit b/.ddev/commands/web/phpunit new file mode 100755 index 0000000..71e2943 --- /dev/null +++ b/.ddev/commands/web/phpunit @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +## Description: Run PHPUnit tests inside the web container. +## Usage: phpunit +## Example: "ddev phpunit" or with additional arguments such as "ddev phpunit --testdox" + +../vendor/bin/phpunit --config .. $* diff --git a/.gitignore b/.gitignore index 548f692..7da83d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor/ /*.cache +!/.ddev/commands/