Skip to content

Commit

Permalink
Add Guardfile.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Sep 4, 2013
1 parent 87c7855 commit 0b471a2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/.coveralls.yml export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/Guardfile export-ignore
/build.xml export-ignore
/phpunit.xml export-ignore
/LICENSE.md export-ignore
Expand Down
7 changes: 7 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
guard :phpunit, :all_on_start => false, :tests_path => 'tests/', :cli => '--colors -c build/phpunit.xml' do
# Run any test in app/tests upon save.
watch(%r{^.+Test\.php$})

# When a file is edited, try to run its associated test.
watch(%r{^src/(.+)/(.+)\.php$}) { |m| "tests/#{m[2]}Test.php"}
end
19 changes: 19 additions & 0 deletions build/phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="../vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>

<testsuites>
<testsuite name="Orchestra\Memory Test Suite">
<directory suffix="Test.php">../tests/</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit 0b471a2

Please sign in to comment.