Skip to content

Pester.bat no longer enables strict mode.#172

Merged
dlwyatt merged 1 commit intopester:Betafrom
dlwyatt:NoStrictModeByDefault
Aug 3, 2014
Merged

Pester.bat no longer enables strict mode.#172
dlwyatt merged 1 commit intopester:Betafrom
dlwyatt:NoStrictModeByDefault

Conversation

@dlwyatt
Copy link
Copy Markdown
Member

@dlwyatt dlwyatt commented Aug 3, 2014

This change was originally made to ensure that Pester's unit tests are run with strict mode enabled, so we would catch any bugs. However, making this change in Pester.bat affects all users of Pester (or at least the ones who use the convenience batch file for integration.)

Pester's unit test scripts have since each been modified to enable Strict Mode at the beginning of each file, and we should no longer require this to be set in Pester.bat. This way, users of Pester are not forced to write their test scripts in a way that is StrictMode-compatible.

This change was originally made to ensure that Pester's unit tests are run with strict mode enabled, so we would catch any bugs.  However, making this change in Pester.bat affects all users of Pester (or at least the ones who use the convenience batch file for integration.)

Pester's unit test scripts have since each been modified to enable Strict Mode at the beginning of each file, and we should no longer require this to be set in Pester.bat.  This way, users of Pester are not forced to write their test scripts in a way that is StrictMode-compatible.
dlwyatt added a commit that referenced this pull request Aug 3, 2014
Pester.bat no longer enables strict mode.
@dlwyatt dlwyatt merged commit 2d70105 into pester:Beta Aug 3, 2014
@dlwyatt dlwyatt deleted the NoStrictModeByDefault branch August 3, 2014 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant