Skip to content

Commit

Permalink
Helper scripts for running tests without remembering paths/commands
Browse files Browse the repository at this point in the history
  • Loading branch information
simshaun committed Sep 26, 2023
1 parent 06cf50d commit 1aff62e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#$env:XDEBUG_MODE = "debug"
#$env:XDEBUG_SESSION = 1

# If no arguments, run all tests.
if (-not $args)
{
./vendor/bin/phpunit --stop-on-failure -c phpunit.xml.dist
}
else
{
./vendor/bin/phpunit --stop-on-failure -c phpunit.xml.dist --filter $args[0]
}
11 changes: 11 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

#export XDEBUG_MODE=debug XDEBUG_SESSION=1

# If no arguments, run all tests.
if [ -z "$1" ]
then
./vendor/bin/phpunit --stop-on-failure -c phpunit.xml.dist
else
./vendor/bin/phpunit --stop-on-failure -c phpunit.xml.dist --filter "$1"
fi

0 comments on commit 1aff62e

Please sign in to comment.