Author Posts

May 13, 2017 at 8:14 pm

Hi,

When i try to OutPutFile i get access denied:
Exception calling "Create" with "1" argument(s): "Access to the path 'D:\' is denied."

Invoke-Pester -Path D:\Pester.Test.ps1 -OutputFormat NUnitXml -OutputFile D:\ -Quiet

I can create a file in that path using new-item within the ISE so i know i can write there, i have also switched off UAC.

What am i missing?

Thanks

TommyQ

May 13, 2017 at 8:36 pm

OutputFile needs a full file path, not a path to a folder.

May 13, 2017 at 8:50 pm

You are kidding me!

Thanks for your help Adam.

Cheers
TommyQ