TestDrive Scope

This topic contains 2 replies, has 2 voices, and was last updated by  Dave Brannan 3 months, 4 weeks ago.

  • Author
    Posts
  • #73582

    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

    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

      Dave Brannan
      Participant

      Ok thanks Adam. I'll open an issue.

You must be logged in to reply to this topic.