php|architect - June 2013 by php|architect
Author:php|architect
Language: eng
Format: epub
Publisher: php|architect
Published: 2013-06-27T04:00:00+00:00
Watching Files
The two lines that start with watch in the configuration code above are what tells Guard which files it should monitor. The first one makes it check files that ends with Test.php in the tests folder. When one of those file changes, Guard runs PHPUnit for this file.
The second line makes Guard monitor the src folder. When a file is changed, Guard will run the tests associated to that file in the tests folder. It uses regular expressions to match files and allows capturing part of the file’s path. If the file src/Foo/Bar.php is modified, the regex will capture Foo/Bar and use it to tell Guard to run the tests in tests/Foo/BarTest.php.
Now if you go into a terminal and run guard, you will get something like Figure 1.
Figure 1: Running Guard Keeping Guard Fast
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Kathy Andrews Collection by Kathy Andrews(11304)
The remains of the day by Kazuo Ishiguro(8365)
Paper Towns by Green John(4780)
Spare by Prince Harry The Duke of Sussex(4769)
The Body: A Guide for Occupants by Bill Bryson(4565)
Industrial Automation from Scratch: A hands-on guide to using sensors, actuators, PLCs, HMIs, and SCADA to automate industrial processes by Olushola Akande(4535)
Be in a Treehouse by Pete Nelson(3635)
Harry Potter and the Goblet Of Fire by J.K. Rowling(3596)
Machine Learning at Scale with H2O by Gregory Keys | David Whiting(3541)
Never by Ken Follett(3507)
Goodbye Paradise(3430)
The Remains of the Day by Kazuo Ishiguro(3122)
Into Thin Air by Jon Krakauer(3119)
The Cellar by Natasha Preston(3072)
The Genius of Japanese Carpentry by Azby Brown(3029)
Drawing Shortcuts: Developing Quick Drawing Skills Using Today's Technology by Leggitt Jim(2934)
120 Days of Sodom by Marquis de Sade(2931)
Fairy Tale by Stephen King(2915)
The Man Who Died Twice by Richard Osman(2792)
