Skip to content

Refactor test suite for orthogonality#441

Merged
ocots merged 1 commit into
developfrom
feat/test-orthogonality
Jun 9, 2026
Merged

Refactor test suite for orthogonality#441
ocots merged 1 commit into
developfrom
feat/test-orthogonality

Conversation

@ocots

@ocots ocots commented Jun 9, 2026

Copy link
Copy Markdown
Member

Overview

This PR addresses two main areas: private/public method naming conventions and exception presentation improvements.

Changes

Private/Public Method Naming and Distribution

  • Reviewed and standardized naming conventions for private vs public methods across submodules
  • Ensured proper distribution of methods across the module structure
  • Improved consistency in method visibility and organization

Exception Presentation

  • Reviewed and improved show methods for exceptions
  • Verified error messages are appropriate and informative (e.g., when calling ctindice(-1))
  • Enhanced exception display with additional diagnostic information
  • Updated documentation where needed to reflect exception behavior

Test Suite Refactoring

As part of this work, the test suite was also refactored for better orthogonality:

  • Split large monolithic test files into smaller, focused test files
  • Each new file tests a single concern, making the test suite easier to navigate and maintain
  • 8 monolithic files → 23 focused files across Core, Exceptions, Extensions, and Unicode modules

Split large monolithic test files into smaller, focused test files:
- Core: test_core.jl → test_core_types.jl, test_utils.jl
- Exceptions: test_types.jl → test_exception_types.jl, test_extension_error.jl
- Extensions: test_extensions_enriched.jl → test_extension_stubs.jl
- Extensions: test_coverage_edge_cases.jl → test_coverage_helpers.jl
- Extensions: test_documenter_reference.jl → 7 focused files (api, config_helpers, page_building, pipeline, symbol_helpers, type_formatting, types)
- Extensions: test_testrunner.jl → 6 focused files (arg_parsing, execution, progress, selection, types)
- Unicode: test_unicode_enriched.jl, test_unicode_utils.jl → test_subscripts.jl, test_superscripts.jl

Enhanced exception display tests with new branches for IncorrectArgument and AmbiguousDescription.
Added Descriptions import to test_display_description.jl.
@ocots
ocots merged commit 6f4c4e3 into develop Jun 9, 2026
6 checks passed
@ocots
ocots deleted the feat/test-orthogonality branch June 9, 2026 10:11
@ocots

ocots commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

This PR addresses two main areas:

Private/Public Method Naming and Distribution

  • Reviewed and standardized naming conventions for private vs public methods across submodules
  • Ensured proper distribution of methods across the module structure
  • Improved consistency in method visibility and organization

Exception Presentation

  • Reviewed and improved show methods for exceptions
  • Verified error messages are appropriate and informative (e.g., when calling ctindice(-1))
  • Enhanced exception display with additional diagnostic information
  • Updated documentation where needed to reflect exception behavior

Test Suite Refactoring
As part of this work, the test suite was also refactored for better orthogonality:

  • Split large monolithic test files into smaller, focused test files
  • Each new file tests a single concern, making the test suite easier to navigate and maintain
  • 8 monolithic files → 23 focused files across Core, Exceptions, Extensions, and Unicode modules

@ocots

ocots commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

Related to #438

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