Skip to content

Conversation

@AndreMiras
Copy link
Member

Add comprehensive tests to improve coverage:

Logger module:

  • Color setup and configuration (never/always/auto modes)
  • Utility functions (shorten_string, get_console_width)
  • LevelDifferentiatingFormatter for all log levels
  • shprint error handling with filters and critical failures
  • Logging helpers (info_main, info_notify)

Prerequisites module:

  • Base Prerequisite class methods (is_valid, checker)
  • Installation workflow (ask_to_install, install)
  • JDK version checking and JAVA_HOME support
  • Homebrew formula location helpers
  • Main check_and_install workflow

Pythonpackage module:

  • Parametrized tests for parse_as_folder_reference edge cases
  • Filesystem path detection for relative paths and git URLs
  • Dependency transformation with query params and fragments
  • Error handling for package extraction and invalid metadata

@AndreMiras AndreMiras marked this pull request as draft November 2, 2025 19:17
Add comprehensive tests to improve coverage:

Logger module (66% → 86%):
- Color setup and configuration (never/always/auto modes)
- Utility functions (shorten_string, get_console_width)
- LevelDifferentiatingFormatter for all log levels
- shprint error handling with filters and critical failures
- Logging helpers (info_main, info_notify)

Prerequisites module (45% → 80%):
- Base Prerequisite class methods (is_valid, checker)
- Installation workflow (ask_to_install, install)
- JDK version checking and JAVA_HOME support
- Homebrew formula location helpers
- Main check_and_install workflow

Pythonpackage module:
- Parametrized tests for parse_as_folder_reference edge cases
- Filesystem path detection for relative paths and git URLs
- Dependency transformation with query params and fragments
- Error handling for package extraction and invalid metadata
@AndreMiras AndreMiras force-pushed the feature/increase_test_coverage branch from 846bc8f to 62e8089 Compare November 2, 2025 19:20
@AndreMiras AndreMiras marked this pull request as ready for review November 2, 2025 20:18
@AndreMiras AndreMiras merged commit c0e1d71 into kivy:develop Nov 3, 2025
42 checks passed
@AndreMiras AndreMiras deleted the feature/increase_test_coverage branch November 3, 2025 11:37
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.

2 participants