Skip to content

[CV-7]: [Enhancement] Auto Run Tests (Arc & Line Bits) & Major Bug FIxes#6

Merged
kool7 merged 4 commits intomainfrom
fix/branch-coverage-and-codelens
May 4, 2026
Merged

[CV-7]: [Enhancement] Auto Run Tests (Arc & Line Bits) & Major Bug FIxes#6
kool7 merged 4 commits intomainfrom
fix/branch-coverage-and-codelens

Conversation

@kool7
Copy link
Copy Markdown
Owner

@kool7 kool7 commented May 4, 2026

BUG FIXES

  • Projects using branch=true in their pytest config were showing 0% because coverage data lives in a different table (arc) than line coverage (line_bits). Fixed the parser to detect and read both.
  • Multi-line expressions (like all = [...], function arguments spanning multiple lines, docstrings) were being falsely counted as uncovered lines.
  • Coverage percentage (%) is consistent everywhere status bar, sidebar and dashboard were sometimes showing different numbers. All three now use the same calculation and respect the same filters.

FEATURES

  • Added "Run pytest" button when no coverage file is found, a popup appears with a "Run pytest" button. Clicking it runs pytest automatically using the project's virtual env shows live output in a panel and auto-loads coverage when done.
  • Test files excluded from stats files like test_*.py and anything inside tests/ are excluded from coverage percentages by default (configurable). No more test files skewing your numbers.
  • CodeLens skips test files per-function coverage hints no longer appear on test files themselves.
  • Dashboard icon the coverage Dashboard tab now has a themed bar-chart icon that works in both light and dark themes.
  • File watcher debounced rapid file changes no longer trigger multiple reloads waits 500ms before reloading.

kool7 added 3 commits May 4, 2026 11:31
- parseCoverageSqlite now detects branch-coverage .coverage files (arc
  table) vs line-coverage (line_bits). Projects using branch=true in
  their coverage config (e.g. starlette) were showing 0% because data
  lives in arc, not line_bits.
- inferMissingLines tracks triple-quoted strings and open bracket depth
  so continuation lines of multi-line expressions are not counted as
  missing statements.
- codeLensProvider skips test files when excludeTestFiles is enabled.
@kool7 kool7 self-assigned this May 4, 2026
@kool7 kool7 added bug Something isn't working enhancement New feature or request ui labels May 4, 2026
@kool7 kool7 changed the title [CV-7]: [Enhancement] Auto Run Tests [CV-7]: [Enhancement] Auto Run Tests & Major Bug FIxes May 4, 2026
@kool7 kool7 changed the title [CV-7]: [Enhancement] Auto Run Tests & Major Bug FIxes [CV-7]: [Enhancement] Auto Run Tests (Arc & Line Bits) & Major Bug FIxes May 4, 2026
@kool7 kool7 merged commit e99a746 into main May 4, 2026
1 check passed
@kool7 kool7 deleted the fix/branch-coverage-and-codelens branch May 4, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant