Skip to content

Code Coverage

Green, gray, and red gutter dots show exactly which lines ran, which didn't, and which errored.

PRO feature. Code coverage is a PRO feature. See Free vs PRO.

ParrotJS marks every line in the editor gutter so you can see at a glance what your code actually did during execution.

Gutter Indicators

Dot Meaning
🟢 Green Line executed
⚪ Gray Line never ran (in an unreached branch or after an early return)
🔴 Red Line produced an error

n/a Markers

Instrumented lines that were never reached show dimmed n/a markers, revealing which control-flow branches were never taken:

function process(x) {
  if (x > 0) {
    return x * 2;      // green — this branch ran
  }
  return -1;           // gray / n/a — this branch never ran
}

Coverage Percentage

The status bar shows overall coverage at a glance, so you can watch coverage climb as you add tests or exercise more paths.

Toggle

Coverage display is controlled by parrotjs.showCoverage (default true). It only renders on the PRO tier.