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

Improve collection node testing, reveal double-load issue. #trivial #352

Merged
merged 1 commit into from
Jun 12, 2017

Conversation

Adlai-Holler
Copy link
Member

I was building some new API for collection node, and I decided to create a new, leaner, better test harness and it revealed a major issue (#351) so I'm opening this diff now to get it in the bank.

  • New test case superclass ASTestCase. Subclass this for new test cases. In its tearDown method, it clears all the test case ivars and clears all UIWindows. This majorly helps reduce pollution between test methods.
  • New category on OCMockObject that lets you specify which optional protocol methods should exist. This is extremely useful because the default behavior is to assume they all exist, which violates framework invariants and makes most testing of complex data sources impossible.
  • New test case ASCollectionModernDataSourceTests.m.
  • Two other inconsequential cleanups.

@Adlai-Holler Adlai-Holler changed the title Improve collection node testing, reveal double-load issue. Improve collection node testing, reveal double-load issue. #trivial Jun 12, 2017
@Adlai-Holler Adlai-Holler force-pushed the AHBetterCollectionTest1 branch 4 times, most recently from 6f700b9 to b0bd856 Compare June 12, 2017 06:15
Copy link
Contributor

@maicki maicki left a comment

Choose a reason for hiding this comment

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

The new OCMock integration is 👌

@Adlai-Holler Adlai-Holler merged commit c297060 into master Jun 12, 2017
@Adlai-Holler Adlai-Holler deleted the AHBetterCollectionTest1 branch June 12, 2017 20:13
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