Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new workspaces for tests for different integrations #trivial #377

Merged
merged 1 commit into from
Jun 21, 2017

Conversation

Adlai-Holler
Copy link
Member

The first chunk of work toward having tests for the upcoming Diffing subspec. We need to have a (relatively) scalable way to add unit tests that apply to Texture+Integration environments.

  • I tried very hard to have the different test suites in the same .xcworkspace but it's impossible to get it reliable.
  • Make a new SubspecWorkspaces folder in root that contains the old ASDKListKit workspace.
  • Make the "Common" test files (helpers) accessible to both the base tests and the subspec tests.
  • Update the ListKit tests for IGListKit 3.0 and deployment target 8.0.

target 'ASDKListKitTests' do
pod 'Texture/IGListKit', :path => '..'
pod 'IGListKit', :git => 'https://github.com/Instagram/IGListKit', :commit => '357a28e'
pod 'JGMethodSwizzler', :git => 'https://github.com/JonasGessner/JGMethodSwizzler', :branch => 'master'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to SubspecWorkspaces/ASDKListKit/Podfile

require 'fileutils'
#TODO CocoaPods plugin instead?
post_install do |installer|
require 'fileutils'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the post_install hook isn't associated with the target (i.e. you can only have one per file,) moved this to root.

debugDescription = [node debugDescription];
dispatch_group_leave(g);
}];
});
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

detachNewThreadWithBlock: is iOS10-only. I don't suspect we'll run our tests against iOS 8/9 too too much, but this was the only divergence so let's keep the option open.


#import <XCTest/XCTestAssertionsImpl.h>

#define ASXCTAssertEqualSizes(s0, s1, ...) \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File was duplicated before. Now it, and all other Common test files, are referenced by the Subspec workspaces but stored in a common place.

Copy link
Member

@nguyenhuy nguyenhuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!

@Adlai-Holler Adlai-Holler merged commit 5357d25 into master Jun 21, 2017
@Adlai-Holler Adlai-Holler deleted the AHSubspecTests branch June 21, 2017 18:06
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants