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

Unit test improvements #13

Merged
merged 4 commits into from
Apr 16, 2021
Merged

Conversation

danielrbrowne
Copy link
Contributor

This PR resolves #12:

  • Several improvements to make both maintaining existing unit tests and adding new unit tests easier and faster.

- Adds 'Mocks.swift' containing mock object types for unit tests.
- Adds 'TestObjects.swift' containing test object instances shared across several unit tests.
- 'XCTestExpectation' instances automatically infer their 'description' based on the unit test name itself.
- Adds 'verifyAPIResultFailure(…)' 'XCTestCase' helper method.
@danielrbrowne danielrbrowne added enhancement New feature or request tech-debt Refactoring code or removing technical debt labels Apr 16, 2021
@danielrbrowne danielrbrowne merged commit 3da409c into main Apr 16, 2021
@danielrbrowne danielrbrowne deleted the tech/12-unit-test-improvements branch April 16, 2021 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tech-debt Refactoring code or removing technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit tests improvements
1 participant