Created
September 3, 2014 11:41
-
-
Save dannyockilson/137606f849fe21c35c20 to your computer and use it in GitHub Desktop.
Laravel Testing Batch File (note %WEBROOT% is specified as my WAMP root dir)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set /p project=What project are you running? | |
cd %WEBROOT%\%project% | |
doskey ls = dir | |
doskey codecept = vendor\bin\codecept run | |
doskey codeceptf = vendor\bin\codecept run functional | |
doskey migrate = php artisan migrate | |
doskey migrateback = php artisan migrate:rollback |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use PowerCmd (powercmd.com) and this allows you to set "tools" that run batch files via a toolbar. I set this batch file to run for a tool called "Laravel". When first clicked it asks for the project name (folder name), then cds to that directory and sets up some alias' for laravel migrations and codeception testing, fairly easy to add additional alias in so this is just a shortened version. Also noting line 4 is just cause I always type ls anyway so may as well make it do something useful.