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

[ADD/UPDATE] Test Coverage, CI/CD, and General Enhancements #7

Merged
merged 5 commits into from
Jan 23, 2024

Conversation

hazeliscoding
Copy link
Owner

No description provided.

ducksoop added 5 commits January 22, 2024 22:19
- Implement NullValueHandling.Ignore for JSON serialization
- Change Value property from dynamic to object for clarity
- Add GetValue<T>() method for type-safe value retrieval
- Add new QuickbaseError and QuickbaseErrorType classes in QuickbaseNet.Errors namespace for comprehensive error handling.
- Introduce QuickbaseResult and QuickbaseResult<TValue> classes in QuickbaseNet namespace to encapsulate operation results and errors.
- Refactor QuickbaseClient methods in QuickbaseNet.Services namespace to utilize new error handling and result encapsulation.
- Modify the existing methods in QuickbaseClient for improved response handling and error reporting.

BREAKING CHANGE: Modified the return types and error handling in QuickbaseClient methods, which may affect existing implementations.
…Client (#2)

- Modify the QueryRecords method to handle different types of errors more explicitly, including client errors, server errors, and generic failures.
- Introduce additional checks for empty data in the QueryRecords method, returning a specific 'NotFound' error if no records are found.
- Update InsertRecords and UpdateRecords methods for consistent error handling and response processing.
- Improve overall readability and maintainability of the QuickbaseClient class.

NOTE: These changes may affect how client errors and empty query results are handled, requiring adjustments in client code.
- Refactor `QueryRecords_Success` and `QueryRecords_Failure` tests in `QuickbaseClientTests` to enhance test robustness and clarity.
- Add comprehensive assertions to validate both success and error responses more thoroughly.
- Implement mock handler setup methods (`SetupMockHandlerWithSuccessResponse` and `SetupMockHandlerWithErrorResponse`) for cleaner and more reusable test setup.
- Update mock JSON responses and error simulation to reflect more realistic test scenarios.
- Ensure tests cover both successful query responses and various error conditions, including bad requests and server errors.

NOTE: These updates provide a more thorough testing framework for `QuickbaseClient` query functionalities, increasing confidence in the stability and reliability of the code.
@hazeliscoding hazeliscoding linked an issue Jan 23, 2024 that may be closed by this pull request
@hazeliscoding hazeliscoding merged commit 5d0aa93 into master Jan 23, 2024
1 check failed
@hazeliscoding hazeliscoding deleted the features/cicd-and-test-coverage branch January 23, 2024 15:08
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.

CI/CD and test coverage
1 participant