2 Responses

  1. Dave Wyatt
    Dave Wyatt at |

    Pester’s generally meant to be used with positional parameters for the basic stuff, so it reads more like a language keyword:

    Describe ‘Something you need to test’ { Do-Something } # etc

    You can use named parameters if you prefer, but I feel they clutter up the code quite a bit, in this case. 🙂 It would be like having to do this sort of thing for an IF statement:

    if -Condition ($i -gt 5) -TrueExpression { } -ElseExpression { }

    Reply
  2. Constructing Private Test Credentials for Pester Testing - Wahl Network

    […] an earlier post, I introduced you to Pester, a unit testing framework for PowerShell. The idea is to create unit […]

Share your point of view!