TestDrive Scope

Welcome Forums Pester TestDrive Scope

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
1 year, 3 months ago.

  • Author
    Posts
  • #73582

    Participant
    Points: 0
    Rank: Member

    Hi,

    Am I right that if you can't utilize TestDrive in a BeforeAll block because BeforeAll runs before the Describe is executed and a TestDrive is created?

  • #73604

    Participant
    Points: 0
    Rank: Member

    Sorta. The BeforeAll scriptblock is executed inside of the Describe block so the Describe block technically does get executed first. I've never actually tried to use TestDrive in a BeforeAll block before but I just did and it just stops the test completely. Weird. I'd recommend opening up a Github issue on that one.

    • #73688

      Participant
      Points: 0
      Rank: Member

      Ok thanks Adam. I'll open an issue.

The topic ‘TestDrive Scope’ is closed to new replies.