Comments (4)
When I run guard --debug
and change app/routes.php
, here is the output.
22:53:59 - DEBUG - Stop interactor
22:53:59 - DEBUG - Command execution: stty gfmt1:cflag=4b00:iflag=6b02:lflag=200005cf:oflag=3:discard=f:dsusp=19:eof=4:eol=ff:eol2=ff:erase=7f:intr=3:kill=15:lnext=16:min=1:quit=1c:reprint=12:start=11:status=14:stop=13:susp=1a:time=0:werase=17:ispeed=38400:ospeed=38400 2>/dev/null
22:53:59 - DEBUG - Command execution: stty echo
22:53:59 - DEBUG - Trying to run Guard::PHPUnit#run_on_modifications with ["app/routes.php", "app/tests"]
22:53:59 - DEBUG - Hook :run_on_changes_begin executed for Guard::PHPUnit
22:53:59 - DEBUG - Command execution: stty -g 2>/dev/null
22:53:59 - DEBUG - Start interactor
[1] guard(main)>
from guard-phpunit.
I haven't tried this, but just glancing over the docs for Guard, it looks like you can return an array from the watch block. So I'm guessing you could return an array of all files in the tests dir.
Something like:
watch('app/routes.php') { Dir.glob('app/tests/**/*.php') }
Worth a shot?
from guard-phpunit.
It worked! Thanks, Dan.
(Still would be nice to specify a folder name, and have guard-phpunit do that for me, though.)
from guard-phpunit.
@JeffreyWay I agree it would be nice.
from guard-phpunit.
Related Issues (16)
- Not growling correctly: always 0/0 tests HOT 5
- PHP Fatal error: Call to undefined method PHPUnit_Framework_TestResult::allCompletlyImplemented() HOT 15
- PHP Fatal Error. (PHP 5.4.13 - PHPUnit 3.8.*) using Guard.
- :all_after_pass no longer functions in Ubuntu
- commands not found phpunit --version, phpunit --include-path, no continuos testing and tests always fail HOT 2
- Small typo
- Declaration of PHPUnit_Extensions_Progress_ResultPrinter::printDefects() is not compatible with PHPUnit_TextUI_ResultPrinter HOT 1
- Call to undefined method PHPUnit_Framework_TestResult::allCompletlyImplemented()
- Doesn't work in Windows HOT 20
- Support guard 1.1.x HOT 1
- Not Automating the Tests in Linux HOT 7
- Add support for specifying path to phpunit to avoid reliance on global install HOT 2
- Allow Ability to Specify phpunit command HOT 4
- Integration with guard-phpunit-sf2 HOT 4
- unrecognized option --printer .. Version incompatability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guard-phpunit.