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

Integration with Travis #3

Merged
merged 3 commits into from
Oct 21, 2016
Merged

Integration with Travis #3

merged 3 commits into from
Oct 21, 2016

Conversation

rubencagnie
Copy link
Contributor

  • Integrated with Travis CI
    • Builds and tests BrickKit for iOS and tvOS on 9.0 and 10.0
    • Currently we are disabling the expectFatalError tests because Travis is not handling this correctly
  • Updated documentation

Currently we are disabling the `expectFatalError` tests because Travis is not handling this correctly
extension XCTest {
var is32Bit: Bool {
let is32bit = sizeof(Int) == sizeof(Int32)
return is32bit
Copy link
Contributor

Choose a reason for hiding this comment

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

This would be more concise/less repetitive if it was just returning the expression

@@ -306,7 +314,7 @@ class BrickCollectionViewTests: XCTestCase {
brickView.layoutSubviews()

var cell = brickView.cellForItemAtIndexPath(NSIndexPath(forItem: 0, inSection: 1)) as? CollectionBrickCell
XCTAssertNil(cell?.frame)
XCTAssertEqual(cell?.frame.height ?? 0, 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the ?? 0 necessary? I though XCTAssertEqual would also compare optional things by default

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are correct. But because iOS9 and iOS10 have different behaviors, I opted to write a test that works for both. I will add it as a comment

@codecov-io
Copy link

codecov-io commented Oct 21, 2016

Current coverage is 93.69% (diff: 20.00%)

No coverage report found for master at 6249880.

Powered by Codecov. Last update 6249880...73dd3e7

@rubencagnie rubencagnie merged commit af19056 into master Oct 21, 2016
@rubencagnie rubencagnie deleted the travis branch October 25, 2016 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants