Retargeting test source files from production to test at Swift Xcode project
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
art
bin
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
lodger.gemspec

README.md

Lodger

Lodger

Re-target your swift sourcefiles from Application target to Testtarget in your Xcode project.

Added testing source files to main application target wrongly? Lodger removes source files for testing (ex. FooTests.swift, BarMock.swift, BazStub.swift, etc) from main application target and add that files to main application target.

Installation

Add this line to your application's Gemfile:

gem 'lodger'

And then execute:

$ bundle

Or install it yourself as:

$ gem install lodger

Usage

$ lodger \
        <xcodeproj_path> \
        <production_target_name> \
        <test_target_name>

for example,

$ lodger path/to/MyProject/MyProject.xcodeproj MyProject MyProjectTests

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kikuchy/lodger. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Logo image's Pictgram-man (Picto-san) -> http://pictogram2.com/