4,461
edits
→Post-installation updates: add a comment about phpunit.xml file |
|||
Line 132: | Line 132: | ||
I also want the unit testing to stop on a failure. You can change <span class="package">stopOnFailure</span> attribute to <span class="package">true</span> in <span class="shell">phpunit.xml</span> file. | I also want the unit testing to stop on a failure. You can change <span class="package">stopOnFailure</span> attribute to <span class="package">true</span> in <span class="shell">phpunit.xml</span> file. | ||
If you use VIM like I do, you can insert this into your <span class="shell">~/.vimrc</span> file and just hit <code>,t</code> (comma and then t) key combination to run the unit test wherever you are under the project directory. | |||
<source lang="vim"> | |||
nmap ,t :!if [ -d .git ] \|\| git rev-parse --git-dir > /dev/null 2>&1; then phpunit -c $(git rev-parse --show-toplevel); else phpunit; fi<cr> | |||
</source> | |||
== Configuration == | == Configuration == |