Coder Social home page Coder Social logo

Comments (4)

JeffreyWay avatar JeffreyWay commented on August 25, 2024

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.

danharper avatar danharper commented on August 25, 2024

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.

JeffreyWay avatar JeffreyWay commented on August 25, 2024

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.

RLovelett avatar RLovelett commented on August 25, 2024

@JeffreyWay I agree it would be nice.

from guard-phpunit.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.