IntelliJ IDEA plugin

See what the code you run actually executed, line by line, without leaving the IDE. Start a Java app or a test the way you always do; the CoverOps plugin attaches the CoverOps Java agent, and the editor marks every line that ran, every branch that was not taken and every line that never ran. Your IDE runs go to a workspace only you see, never into your team's numbers.

The plugin does one thing: coverage. Choosing and running the tests a change affects is the job of the TestingOps plugin; the two can sit side by side.

What you need

  • IntelliJ IDEA 2026.1 or later, with or without an Ultimate subscription. Earlier versions cannot install it: from 2026.1 IntelliJ starts Maven through Maven's own command line, and the hook the plugin uses for it exists only from 2026.1 on. The Spring Boot run configuration needs Ultimate; without it, start the app as an Application or through Maven or Gradle.
  • A Java project. The app or the tests run on Java 8 or newer. The IDE uses its own runtime; you do not need to install anything else.
  • Run configurations the plugin knows: Application, Spring Boot, JUnit, TestNG, JAR, Maven goals (spring-boot:run, test, verify, quarkus:dev…) and Gradle tasks (bootRun, run, test, quarkusDev…).
  • To see which test reached a line: JUnit 5.12 or later, or TestNG. With JUnit 4 the lines are marked, but without the test's name.
  • A CoverOps account with a team project, and a role on it that may add agents (owner, admin or member; not viewer).
  • A browser on the same computer. You sign in through it, and the browser hands the sign-in back to the IDE on this computer only.

Step 1: Install the plugin

The plugin is not on JetBrains Marketplace yet. Until it is, add CoverOps's own plugin repository to IntelliJ once: the plugin installs from there, and its new versions arrive with IntelliJ's other updates.

  1. Open Settings (macOS: IntelliJ IDEA → Settings…, Windows and Linux: File → Settings…).
  2. Go to Plugins, click the gear icon (⚙) → Manage Plugin Repositories….
  3. Click +, add this address and click OK: https://coverops.ai/v1/agents/intellij/updatePlugins.xml On your own CoverOps installation: <your CoverOps address>/v1/agents/intellij/updatePlugins.xml.
  4. In the Marketplace tab, search for CoverOps and click Install.
  5. Restart the IDE when it asks.

Once the plugin is on Marketplace, steps 2 and 3 are not needed.

From a zip file (when the IDE cannot reach that address): download coverops-jetbrains.zip (on your own installation <your CoverOps address>/v1/agents/artifact/intellij), then in Settings → Plugins click ⚙ → Install Plugin from Disk…, pick the zip (do not unzip it) and restart the IDE. A plugin installed from a zip gets no updates, and IntelliJ says "Cannot update plugin" at every start. If you add the repository above later, pick it with the Choose where to get updates from link in that message.

After the restart you have a Tools → CoverOps menu and a CoverOps tool window.

Step 2: Check the address

On the hosted service there is nothing to do: the plugin talks to https://coverops.ai.

If your company runs its own CoverOps, open Settings → Tools → CoverOps and set:

  • CoverOps address: the address you open the dashboard at, for example https://coverops.example.com.
  • Agent endpoint: leave it empty. Fill it only if your agents report to a different address than the dashboard; your CoverOps administrator knows.

Step 3: Sign in and connect the project

Open the project you work on, then choose Tools → CoverOps → Connect This Project… (the same link is in the empty CoverOps tool window).

  1. The browser opens CoverOps. Sign in if you are not signed in yet, or register.

  2. Allow the IDE. The page names the IDE and the computer that asked, and says what the IDE gets:

    The "Sign in to the IDE" page in the dashboard: Allow IntelliJ IDEA 2026.1 on dev-mac to use CoverOps

    Click Allow only if you started the sign-in from your IDE just now. The page then says "Done. You can go back to the IDE and close this tab."

  3. Pick the team project. Back in the IDE, the Connect to CoverOps window lists the team projects you can connect. Type to search; double-click a project or press Enter.

  4. The IDE confirms: "Connected to ‹project›. What you run from the IDE now reports to your own workspace."

What happened:

  • The IDE received its own token, with scope ide. It works only for the IDE's own requests (your IDE workspace and the list of your projects) and is kept in the IDE's password store (macOS Keychain, Windows Credential Manager, KWallet or libsecret). You never copy or paste a token.
  • CoverOps created your IDE workspace beside the team project, named ‹project› · IDE, and registered this computer as one of its agents.
  • Attach Agent to Java Runs is now on.

The token shows in the dashboard under Workspace → Team → API tokens as IDE sign-in — ‹IDE› on ‹computer›, with scope ide:

The API tokens list with the IDE sign-in token, scope ide

The sign-in waits five minutes. If you do not finish in time, start it again from the IDE.

An ordinary API token from Team → API tokens cannot connect an IDE: the browser sign-in is the only way.

Step 4: Run your code

Start the app or the tests exactly as before: the green Run arrow in the gutter, a run configuration, the Maven or Gradle tool window. There is nothing to add to a run configuration.

  • Application, Spring Boot, JUnit, TestNG, JAR: the plugin adds -javaagent:… to the JVM's command line for this launch.
  • Maven and Gradle: the agent goes into JAVA_TOOL_OPTIONS, so every JVM the build starts (the Surefire fork, bootRun, the test workers) gets it. Your run configuration is not changed for good: the plugin takes its settings out again as soon as the process has started.
  • Build-only tasks (compileJava, jar, clean…) are left alone.

On the first run the IDE tells you what it measures, for example "CoverOps is measuring com.acme." By default that is the packages your production source folders contain. To measure other packages, use Agent Packages… in the CoverOps tool window's menu.

Apps and tests you start while another IDE run is still going report into the same run. So a request that crosses two services you started from the IDE is one run, and the services' calls to each other are recorded. When nothing started from the IDE is running any more, the next launch opens a new run.

Step 5: Read the coverage in the editor

Open a file the run executed. Each measured line has a bar in the gutter:

BarMeans
GreenThe line ran.
YellowThe line ran, but one of its branches was never taken.
RedThe line never ran.

An app started from the gutter, with a request that took only the "unit" branch of the if:

Gutter marks after an Application run: line 11 yellow, line 12 red, line 14 green, the never-called method red

The same class after spring-boot:run from the Maven tool window, with requests through both branches:

Gutter marks after a Maven spring-boot:run: lines 11, 12 and 14 green, the never-called method red

A Gradle run of a plain Java app:

Gutter marks after a Gradle run: two partly covered if lines in yellow, one red return, one green return

Hover a bar to see how often the line ran and which tests reached it:

Tooltip on a yellow bar: CoverOps: Ran once · branches 1/2, Tests: com.acme.shop.PriceControllerTest › unitPrice

The marks refresh every 10 seconds while the app runs, and once more after it stops. Show Coverage in the Editor (in the tool window's toolbar) turns them off and on; Refresh Coverage reads the newest coverage at once.

The CoverOps tool window

Open it from the tool window bar on the right, or with View → Tool Windows → CoverOps.

The CoverOps tool window: project Shop e2e, "Your IDE runs · only you see them", the newest run at 83 %, and the files with their coverage

  • The header: the team project and "Your IDE runs · only you see them".
  • Run: the newest run by default; pick an older one from the list. The bar under it is the run's line coverage.
  • Services tab: each service of the run with its own coverage (replicas merged) and the services it calls. Double-click a service to see its files.
  • Files tab: every file the run measured, with package, coverage and lines, least covered first. Click a column to sort; double-click a file to open it.
  • Toolbar: Refresh Coverage, Show Coverage in the Editor, Attach Agent to Java Runs, Connect This Project.
  • Menu (⋮): Agent Packages…, Sign In with Browser…, Sign Out, Disconnect This Machine, Settings….

Your runs stay yours

  • Runs started from the IDE go to your IDE workspace, not to the team project. The team project's runs, KPIs, quality gates, reports and notifications never see them.
  • They do not count toward your package's limits: not projects, not lines of code, not agent instances. One person connects at most 5 computers per team project.
  • Only you open your IDE workspace, and only while you are a member of the team project.
  • To see your IDE runs in the dashboard, pick ‹project› — my IDE runs in the project switcher at the top. It opens read-only, for you alone. The Projects page does not list it, because it has no settings.
  • Your source code does not leave your computer. The agent reports line numbers and hit counts only.

Common problems

What you seeWhyWhat to do
The plugin does not install, or says it is incompatibleThe IDE is older than 2026.1.Update IntelliJ IDEA to 2026.1 or later.
"CoverOps is on, but found no package to measure. Set one in Tools → CoverOps → Agent Packages…"The project has no production source folder the plugin recognises.Open Agent Packages… and enter your package prefix, for example com.acme.
No bars in the gutterThe run has not reported yet, the file is outside the measured packages, the run was a build-only task, or coverage display is off.Wait 10 seconds or click Refresh Coverage; check Agent Packages…; check that Show Coverage in the Editor and Attach Agent to Java Runs are on.
The tool window says "No run yet. Start a Java app or a test from the IDE."Nothing has run since you connected.Start an app or a test.
"This run measured no file of the project."The run measured only packages that are not in this project.Check Agent Packages….
The sign-in does not finish, or "The sign-in timed out after 5 minutes"The browser page was left open too long.Start again from Tools → CoverOps → Sign In with Browser… or Connect This Project….
The browser says "This is not the sign-in the IDE is waiting for."The page belongs to an earlier sign-in.Start the sign-in again from the IDE.
"CoverOps no longer accepts this sign-in. Sign in again"The IDE's token was revoked or your sessions were ended.Tools → CoverOps → Sign In with Browser…
Connecting is refused, and the message mentions a role that may add agentsYour role on the team project is viewer.Ask a project admin for a member role.
"Your account has no team project yet."You are not on any team project.Create one in the dashboard, or ask to be added to one, then connect again.
"At most 5 machines per person and project are connected; disconnect one first"You connected 5 computers to this project already.On a computer you no longer use, choose Tools → CoverOps → Disconnect This Machine.
Lines are marked, but the tooltip names no testThe tests run on JUnit 4, or on a JUnit 5 older than 5.12.Use JUnit 5.12+ or TestNG to get test names.
"Picked up JAVA_TOOL_OPTIONS: …" in the run consoleThe JVM prints this whenever JAVA_TOOL_OPTIONS is set; it is how Maven and Gradle runs get the agent.Nothing; it is expected.
Remote development (Gateway, SSH, dev containers) gets no coverageThe agent and its credential live on your local computer.Not supported in this version.

Every decision the plugin takes is one line starting with CoverOps: in the IDE log (Help → Show Log in Finder on macOS, Show Log in Explorer on Windows). Send those lines along when you ask for help.

Sign out and disconnect

  • Tools → CoverOps → Sign Out forgets the IDE's token on this computer and revokes it in CoverOps. If CoverOps cannot be reached at that moment, revoke it yourself under Team → API tokens (the IDE sign-in — … row).
  • Tools → CoverOps → Disconnect This Machine removes this computer's agent and its credential. The runs you already made stay in your IDE workspace. New runs start without CoverOps.
  • To stop measuring for a while without disconnecting, turn off Attach Agent to Java Runs. Runs then start exactly as before.

Where things are kept

WhatWhere
The IDE's tokenThe IDE's password store (macOS Keychain, Windows Credential Manager, KWallet or libsecret).
This computer's agent credential~/.coverops/ide/<workspace>.properties, readable by you only. It is never put in a run configuration, an environment variable or a command line.
The agent~/.coverops/agents/java/coverageops-agent.jar, downloaded from your CoverOps and checked once a day.
The connectionThe project's .idea/workspace.xml, which is not committed.