title: What is the way proper way to use GTXiLib in swift?
body: <p>I want to use integrate GTXLib(<a href="https://cocoapods.org/pods/GTXiLib" rel="nofollow noreferrer">https://cocoapods.org/pods/GTXiLib</a>) in my swift testing project, I have installed the pod and convert it's library hooking code from objective-c to Swift, also I have modified my application code to generate some accessibility errors. But unfortunately I never get any failure after test run.</p>
  
  <p>Now I am trying to figure out what I did wrong in my code so that the GTXilib is not catching any error. Here are the original code and converted code. It will be appreciated, if anybody please share your  experience related to that also if you find out any problem in my code.</p>
  
  <h1>Objective-C code</h1>
  
  <pre><code>// Include the GTXiLib umbrella header.
  
  // Note that that is +setUp not -setUp
  + (void)setUp {
    [super setUp];
  
    // ... your other setup code (if any) comes here.
  
    // Create an array of checks to be installed.
    NSArray *checksToBeInstalled = @[
        [GTXChecksCollection checkForAXLabelPresent]
    ];
  
    // Install GTX on all tests in *this* test class.
    [GTXiLib installOnTestSuite:[GTXTestSuite suiteWithAllTestsInClass:self]
                         checks:checksToBeInstalled
              elementBlacklists:@[]];
  }
  </code></pre>
  
  <h1>Swift code</h1>
  
  <pre><code>override static func setUp() {
          super.setUp()
          //let checksToBeInstalled: [GTXChecking] = GTXChecksCollection.allGTXChecks()
          let checksToBeInstalled: [GTXChecking] = [GTXChecksCollection.checkForAXLabelPresent()]
          let tmp = GTXTestSuite.init(allTestsIn: ExampleTests.self)
          GTXiLib.install(on: tmp ?? GTXTestSuite(), checks: checksToBeInstalled, elementBlacklists: [])
      }
  </code></pre>