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

Create tests for all GUI components #23

Open
Devin-Mix opened this issue Mar 29, 2023 · 0 comments
Open

Create tests for all GUI components #23

Devin-Mix opened this issue Mar 29, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request P1 High-priority issue or feature that should be addressed quickly

Comments

@Devin-Mix
Copy link
Owner

Each GUI component should have a unit test available which will test its use both inside and outside the application's drawable area. At minimum, the following cases should be tested for each component:

  • The component's anchor is outside of each bound separately as well as combined. This should raise an error.
  • The component's anchor is within bounds, but its width and/or height cause it to exceed the application's bounds. This should raise an error.
  • The component fills the entirety of the drawable screen area along either or both axes. This should not raise an error.
  • The component fits entirely within bounds. This should not raise an error.
  • If a component contains sub-components (e.g. text on a button) the same tests as above should be included to determine the behavior of the sub-component when meeting or exceeding the bounds of the main component or screen.
@Devin-Mix Devin-Mix added documentation Improvements or additions to documentation enhancement New feature or request P1 High-priority issue or feature that should be addressed quickly labels Mar 29, 2023
@Devin-Mix Devin-Mix added this to the Presentation 3 milestone Mar 29, 2023
@Devin-Mix Devin-Mix self-assigned this Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request P1 High-priority issue or feature that should be addressed quickly
Projects
None yet
Development

No branches or pull requests

1 participant