Getting Started¶
The library is distributed using CocoaPods. You can install by adding the following to your Podfile.
Objective-C¶
target :MyAppNameTests do
pod 'LayoutTest'
end
Swift¶
target :MyAppNameTests do
pod 'LayoutTest/Swift'
end
Adding To Non-UnitTest Targets¶
Note
Since LayoutTestCase depends on XCTest, you should only add LayoutTest to your unit tests target. If you want to use some of the functionality in an app (ie. catalog functionality or helpers), then you can include the LayoutTestBase pod in those targets.
For example:
target :MyAppName do
pod 'LayoutTestBase'
end
target :MyAppNameTests do
pod 'LayoutTest'
end
Writing Tests¶
See Writing Tests