Skip to content

Commit

Permalink
removing new-fixture from batch invocation
Browse files Browse the repository at this point in the history
not sure why, but the SHIFT is not shifting the args
  • Loading branch information
scottmuc committed Jun 7, 2013
1 parent 8cecfe2 commit e88f71d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions bin/pester.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,23 @@ if '%1'=='-?' goto usage
if '%1'=='?' goto usage
if '%1'=='/help' goto usage
if '%1'=='help' goto usage
if '%1'=='new-fixture' goto newfixture

@PowerShell -NonInteractive -NoProfile -ExecutionPolicy unrestricted -Command ^
"& Import-Module '%DIR%..\Pester.psm1'; & { Invoke-Pester -OutputXml Test.xml -EnableExit %ARGS%}"

goto finish
:newfixture
SHIFT
@PowerShell -NonInteractive -NoProfile -ExecutionPolicy unrestricted -Command ^
Import-Module '%DIR%..\Pester.psm1'; New-Fixture %*

goto finish
:usage
if NOT '%2'=='' goto help

echo To run pester for tests, just call pester or runtests with no arguments
echo.
echo Example: pester
echo To create an auomated test, call pester new-fixture with path and name
echo Example: pester new-fixture [-Path relativePath] -Name nameOfTestFile
echo For Detailed help information, call pester help with a help topic. See help topic about_Pester for a list of all topics at the end
echo.
echo For Detailed help information, call pester help with a help topic. See
echo help topic about_Pester for a list of all topics at the end
echo.
echo Example: pester help about_Pester
echo.
goto finish

:help
Expand Down

0 comments on commit e88f71d

Please sign in to comment.