Skip to content

Swizzle XCTestObservationCenter observer registration methods#278

Merged
phatblat merged 1 commit intoQuick:masterfrom
phatblat:test-observer3
Apr 7, 2016
Merged

Swizzle XCTestObservationCenter observer registration methods#278
phatblat merged 1 commit intoQuick:masterfrom
phatblat:test-observer3

Conversation

@phatblat
Copy link
Copy Markdown
Member

@phatblat phatblat commented Apr 6, 2016

As discussed in #273, this approach uses swizzling of the private _addLegacyTestObserver: method to register CurrentTestCaseTracker, ensuring that XCTestLog has been registered first. The approach in #271 appeared to work for the typical use case, but Quick's test suite still had failing tests due to something not working right with these observers. This approach seems to work for all these cases.

Addresses Quick/Quick#494. Redo of #271. May address #276. Hope to unblock Quick/Quick#507.

Loading
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