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 #1

Merged
merged 5 commits into from
Oct 20, 2024
Merged

Unit test #1

merged 5 commits into from
Oct 20, 2024

Conversation

misarb
Copy link
Owner

@misarb misarb commented Oct 20, 2024

This pull request introduces a suite of unit tests for the G29 library. The main focus of these tests is to ensure the correct functionality of the G29 library methods and to verify that the integration with the hidAPI interface operates as expected.
Changes Made:

Unit Tests Implementation:
    Developed a series of unit tests covering all critical functionalities of the G29 library, including button state updates and event handling.
    Each test case aims to validate the expected behavior of the library methods under various conditions.

Mocking the hidAPI Interface:
    Implemented a mock version of the hidAPI interface to simulate hardware interactions. This allows for testing the G29 library without requiring physical hardware, facilitating a controlled and reproducible testing environment.
    The mock interface simulates the responses of the hardware, enabling us to test how the G29 library handles different button states and inputs from the device.

@misarb misarb merged commit 0e4d798 into main Oct 20, 2024
2 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