Skip to content

CocoaPods/cocoapods-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cocoapods-test

CocoaPods plugin to run tests for a Pod.

⚠️ WARNING: This plugin is incomplete and is not yet capable of running tests for a Pod. ⚠️

Installation

$ gem install cocoapods-test

Usage

Run the tests for a Pod using files in the working directory.

$ pod lib test POD_NAME

Run the tests for a Pod, downloading the source files.

$ pod spec test POD_NAME

Podspecs

To be able to test a Pod, you will need to define test_spec on the Pod including all the test source files and any test dependencies.

Pod::Spec.new do |spec|
  spec.name = 'PathKit'
  spec.version = '1.0.0'
  spec.source_files = 'URITemplate/*.swift'

  spec.test_spec do |test_spec|
    test_spec.source_files = 'URITemplateTests/*.swift'
    test_spec.framework = 'XCTest'
  end
end

About

CocoaPods plugin to run tests for a Pod

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages