The first is how to integrate these 2 frameworks into a project.
I use Swift as a development language for projects.
First create a swift project and then integrate it into the project with Cocoapod, podfile the file contents refer to GitHub----> https://github.com/Quick/Quick#
Here is an example
use_frameworks!def testing_podspod'Quick','~> 0.8.0'pod'Nimble','3.0.0'End//swiftquicktesttests the test unit in the project, it is simple to create a project tick "Unit Tests"/"UI Tests", then you will generate 2 folders on the left side//test units in the Swiftquicktestuitests projectTarget'swiftquicktesttests' Dotesting_pods Endtarget'swiftquicktestuitests' DoTesting_pods End
2 frames downloaded to local, followed by the Main.h file containing the 2 frames (quick.h/nimble.h)
Create a swift and OC bridging file, similar to "Swiftquicktesttests-bridging-header" like "Projectname-bridging-header" contains the following code,
If you create an OC file, you will be prompted to create a message for the file, and you can click created to automatically create a file like the one above.
Why create an OC file, because these 2 frames are still written in OC, Swift cannot call the OC code directly, and it needs to be referenced before it can be called
#import <Quick/Quick.h>#import <Nimble/Nimble.h>
The basic thing is to include 2 frames in the unit test, specifically what is the project of each unit module to do
Quick + Nimble Unit test