Skip to content

Improve test coverage and quality#9

Merged
hoangtaiki merged 12 commits into
masterfrom
improve/test-coverage-and-quality
Feb 1, 2026
Merged

Improve test coverage and quality#9
hoangtaiki merged 12 commits into
masterfrom
improve/test-coverage-and-quality

Conversation

@hoangtaiki
Copy link
Copy Markdown
Owner

No description provided.

- Introduced `smart_wait_spec.rb` to test various wait conditions including visibility, enabled state, text presence, and custom conditions.
- Implemented tests for `ConditionalWait` methods ensuring correct behavior for `wait_until`, `wait_while`, and `wait_for_stable_condition`.
- Created `visual_spec.rb` to validate visual testing functionalities, including baseline creation, screenshot capturing, and visual comparison.
- Added `wait_spec.rb` to verify the behavior of the Wait class, including custom timeout and interval settings.
- Established a `spec_helper.rb` for shared test configurations and mock setups.
- Ensured all tests are isolated and clean up after execution to maintain test integrity.
- Added frozen string literal to spec_helper.rb and visual_spec.rb for performance.
- Updated example_status_persistence_file_path to use single quotes for consistency.
- Simplified RSpec before and after hooks in spec_helper.rb.
- Enhanced visual_spec.rb with improved mock setups and streamlined tests.
- Refactored wait_spec.rb to improve clarity and coverage of the wait functionality.
- Added logging for wait start and end events in the wait functionality.
- Improved handling of exceptions in wait conditions and added integration scenarios for element finding and state changes.
- Introduced a new spec file for Appom::Section with tests for initialization, parent page retrieval, element definitions, nested sections, and inheritance.
- Enhanced SmartWait tests to cover custom conditions, element visibility, attribute checks, and stability conditions.
- Implemented factory methods for SmartWait with tests for clickable, text matching, and count conditions.
- Re-enabled SimpleCov for coverage tracking with a minimum coverage threshold of 80%.
…ctionality

- Enhanced `element_state_spec.rb` with additional tests covering edge cases, observer functionality, and error handling for element state tracking.
- Introduced new `screenshot_spec.rb` to test the screenshot management features, including capturing screenshots, handling failures, and comparing images.
- Implemented tests for various screenshot formats, auto-timestamping, and cleanup of old screenshots.
- Added validation for supported formats and ensured graceful handling of exceptions during screenshot operations.
- Added `simplecov-cobertura` gem for CI/Codecov integration in Gemfile.
- Updated README.md to improve project presentation and highlight key features.
- Created a new examples directory with practical use cases for Appom.
- Introduced a Basic Login example demonstrating fundamental concepts.
- Enhanced spec_helper.rb for better coverage reporting and configuration.
…unnecessary RuboCop disables and consolidating method stubs in specs
… update RuboCop metrics and enhance test coverage for edge cases and error handling
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 1, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@hoangtaiki hoangtaiki merged commit ab6061d into master Feb 1, 2026
5 checks passed
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.

1 participant