Skip to content

v2.4.0

Choose a tag to compare

@evandhoffman evandhoffman released this 08 Mar 22:50
· 51 commits to main since this release

Test Coverage & Code Quality

This release significantly improves test coverage and code quality through 7 focused PRs (#81–#87):

New Tests (105 added, 62 → 167 total)

  • CSVDocumentTests — content storage, UTF-8 round-trip, invalid encoding
  • ExportErrorTests — all error description branches
  • SettingsEnumTests — all settings enum raw values, display names, formats
  • SettingsManagerTests — defaults, persistence, invalid value fallbacks
  • FHIRLabResultParserTests — FHIR JSON parsing, LOINC matching, missing fields
  • A1CSampleTests — memberwise init, value preservation
  • ExportLogicTests — export enablement, date ranges, record limits, filenames
  • HealthKitQueryHelpersTests — authorization types, date alignment, A1C filtering

Production Refactors

  • Extract ExportLogic enum from DataSelectionView for testable export decision logic
  • Extract HealthKitQueryHelpers enum from HealthKitManager (eliminates triplicated date predicate code)
  • Extract FHIRLabResultParser.extractLabResult(fromFHIRData:loincCode:) pure helper
  • Add 16 accessibility identifiers across LaunchView, DataSelectionView, SettingsView

Documentation

  • Updated docs/TESTING.md with full test inventory and manual verification matrix