miércoles, 12 de julio de 2017

iOS: Unit testing

1) Make sure your podfile looks like this:

platform :ios, '10.0'
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'

def common_pods
    // your pods here
end

target 'MyApp' do
    common_pods
end

target 'MyApp Tests' do
    common_pods

end

2) Your test files should include:

import XCTest
@testable import MyApp

3) Configuration:





No hay comentarios:

Publicar un comentario