test: increase test coverage overall - #49
Open
rschauner wants to merge 12 commits into
Open
Conversation
- create new test_helpers module to centralize file handling
- Introduce reusable test templates with `rstest_reuse`. - Add new test cases to ensure CLI subcommands handle missing inputs correctly. - Enhance subcommand coverage for `reformat-plate-reader-data`.
- Remove `#[ignore]` attribute for `test_blosum62_error_handling` as it is no longer needed. - Limit `set_blosum62_to_err_for_test` function visibility to the current module by removing `pub(crate)`.
…remove internal API dependency - Introduced `EnrichrAPITrait` to abstract API interactions. - Removed internal `api` field from `Enrichment` and adjusted `run` method to accept `EnrichrAPITrait` implementations. - Simplified `EnrichrAPI` initialization by passing `background` directly. refactor(enrichment): extract gene list parsing into separate function test: add tests for enrichment module
- Replaced `#[should_panic]` in `handle_command` tests with explicit error handling checks. - Added validation for unsupported background file usage in `handle_command`. - Introduced parameterized tests for `APIFailure::to_string` with `rstest`. - Enhanced `test_enrichr_result_empty` with multithreaded async execution and result persistence checks.
…tions - Introduced `create_dual_progress_bar` to handle progress bar creation for outer and inner loops. - Extracted `calculate_single_chain_score` and `calculate_single_chain_background_score` for better modularity and reduced code duplication. - Removed redundant `height` parameter by directly retrieving it from `groups.height()`. - Optimized test coverage by parameterizing `test_downsample_vec_limits` with `rstest`. - Added helper `get_f64_col_by_idx` to streamline test code for column value extraction. test(tcr-align): enforce `cargo nextest run` for `test_blosum62_error_handling` - Added an assertion to ensure the test runs only with `cargo nextest run` due to its reliance on per-test process isolation.
…onality - Added assertions in `read_excel` tests to ensure non-empty dimensions (width and height). - Introduced `test_read_excel_from_generic` for testing Excel file parsing with generic input.
…test` - Added tests for `thread_parser` and `thread_default` with separate cases for `base_cmd` and `no_base_cmd` configurations. - Refactored `num_cpu` logic to support test-specific overrides and ensure consistency in test environments. - Updated `thread_parser` to utilize the new `num_cpu` function.
…angerTCR chore: add missing empty line in gene list file
- Update `Cargo.lock` - Added `temp_testdir` for improved test sandboxing. - Adjusted Codecov config to include `target: auto` in project status checks.
3 tasks
Codecov Report❌ Patch coverage is
|
rschauner
force-pushed
the
45-test-increase-test-coverage-overall
branch
from
August 17, 2026 20:02
d1a0b73 to
64a7d06
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This closes #45.