Quick/Quick

beforeSuite seems to run always, indecent of focus

开放

#499 创建于 2016年3月11日

 (12 条评论) (2 个反应) (0 位负责人)Swift (896 个派生)batch import
enhancementhelp wantedneeds-investigationneeds-more-information

仓库指标

星标
 (9,827 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Say we have

class ASpec : QuickSpec {
   override func spec {
     beforeSuite { doSomething() }
     describe(...) { ... }
   }
}

and

class BSpec : QuickSpec {
   override func spec {
     describe(...) {
        ...
        fit(...) { ... }
        ...
      }
   }
}

doSomething() is called, even though it's independent of the tests to be executed only.

贡献者指南