TestDrive Scope

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Dave Brannan Dave Brannan 1 month ago.

  • Author
    Posts
  • #73582
    Profile photo of Dave Brannan
    Dave Brannan
    Participant

    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
    Profile photo of Adam Bertram
    Adam Bertram
    Moderator

    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
      Profile photo of Dave Brannan
      Dave Brannan
      Participant

      Ok thanks Adam. I'll open an issue.

You must be logged in to reply to this topic.