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

Increase Test Coverage #2

Open
Sherlouk opened this issue Jun 27, 2021 · 0 comments
Open

Increase Test Coverage #2

Sherlouk opened this issue Jun 27, 2021 · 0 comments

Comments

@Sherlouk
Copy link
Owner

We should increase the test coverage to demonstrate more real-world examples as opposed to flat blue blobs (which I'm pretty sure are against Apple's HIGs and wouldn't be allowed in production).

I want to demonstrate (and then document with images in the README) various different use cases including:

  • Different Themes (A view controller which responds to light/mode dark)
  • Different Localisations (A view controller which changes based on the user's locale)
  • Different Accessibility Modes (A view controller which supports dynamic text sizes, smart invert, etc)
  • Different Devices (A view controller which changes depending on the device or screen size)
  • Different Sizes (A view/cell which changes based on the rendered size)

other ideas welcome

I also want to add some extra tests including:

  • A performance test covering the entire stitch strategy
  • A test which uses a custom strategy which adds random timeouts to the snapshots (and as such will return out of order - testing our sorting solution)
  • A test which checks the title trimming approach
  • Tests to cover independent units of code throughout the package (especially the calculateImageSize function)
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

No branches or pull requests

1 participant