Skip to content

test: add coverage tests for config and output modules, add CI coverage check#11

Merged
bigknoxy merged 7 commits into
mainfrom
test/coverage-improvements
Jun 11, 2026
Merged

test: add coverage tests for config and output modules, add CI coverage check#11
bigknoxy merged 7 commits into
mainfrom
test/coverage-improvements

Conversation

@bigknoxy

@bigknoxy bigknoxy commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Added comprehensive tests to achieve 98% branch coverage (target: 85%):

Changes:

  • Added tests for config.ts error handling (lines 47-61)
  • Added tests for output.ts company result formatting branches (lines 119,124-130)
  • Added coverage threshold check to CI workflow (85% branch coverage required)

Coverage improvement: 60.66% → 98% branch coverage

  • config.ts: 100% statements, branches covered for error paths
  • output.ts: 99.33% statements, 97.85% branches

bigknoxy added 7 commits June 7, 2026 00:47
…ge check

- Added tests for config.ts saveConfig error handling (read errors, non-Error exceptions)
- Added tests for output.ts company result formatting branches (headquarters, employees, revenue, funding)
- Added coverage threshold check to CI workflow (85% branch coverage required)
- Achieved 98% branch coverage (up from 60.66%)
@bigknoxy
bigknoxy merged commit 6cef233 into main Jun 11, 2026
4 checks passed
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