STS4 How to run Code Coverage in Spring Tools Suite 4?
Asked Answered
D

2

5

I am unable to find a way how to run code coverage in STS4.

In Eclipse Oxygen, I needed to do:

  1. Right-click on project > Properties > Coverage to enable code coverage

  2. Then, right-click on project > Run Code Coverage

However, both of these 2 options are missing in STS4

Downy answered 18/10, 2021 at 1:14 Comment(3)
There is no code coverage feature installed by default in the Spring Tools 4 for Eclipse distribution (and never was, as far as I remember), but you might have had an Eclipse installation with such a third-party plugin installed. Maybe installing this from the marketplace helps: marketplace.eclipse.org/content/eclemma-java-code-coverageMaori
@MartinLippert. Thank you. That worked. Can you post your comment as an answer so I can accept it. Thanks againDowny
Glad to hear that, posted as answer again.Maori
M
13

There is no code coverage feature installed by default in the Spring Tools 4 for Eclipse distribution (and never was, as far as I remember), but you might have had an Eclipse installation with such a third-party plugin installed. Maybe installing this from the marketplace helps:

marketplace.eclipse.org/content/eclemma-java-code-coverage

Maori answered 20/10, 2021 at 19:17 Comment(1)
Search for "EclEmma Java Code Coverage" in Eclipse marketplaceSteve
L
1

For future readers, if you don't find the tool "EclEmma Java Code Coverage" in Eclipse Marketplace, search it through the other setup menu : Help > Install New Software...

Installation's official guide: https://www.eclemma.org/installation.html.

Lustral answered 26/12, 2022 at 12:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.