Upgraded to Pester 5 – now broken :(

Welcome Forums Pester Upgraded to Pester 5 – now broken :(

Viewing 1 reply thread
  • Author
    Posts
    • #239993
      Participant
      Topics: 41
      Replies: 56
      Points: 119
      Rank: Participant

      Hi,

      I  have been using a previous version of Pesterto test a load of https APIs. Each API requires a set of headers passed into each request. Previously I was just adding these as a function before and passing the values into the pester test. but now these all fail to run and I’m not sure I understand why.

      I’ve added the beforeEach{ and added my function within that script block, but it still fails.

      I’ve cut off the rest of the script cause it does a lot of other stuff, but these tests fail as well as the others.

      Any help would be great.

      Thanks

       

    • #240077
      Senior Moderator
      Topics: 9
      Replies: 1370
      Points: 5,048
      Helping Hand
      Rank: Community MVP

      Pester v5 has couple of breaking changes and below link should help you.

      https://dsccommunity.org/blog/converting-tests-to-pester5/

Viewing 1 reply thread
  • The topic ‘Upgraded to Pester 5 – now broken :(’ is closed to new replies.