PS.
The above execution was made based on the assumption that JaCoCo doesn't 
require access to the source code.

On Friday, September 1, 2023 at 10:43:23 AM UTC-4 Rostislav Alpin wrote:

> Good day!
> I am getting the error "Skipping JaCoCo execution due to missing 
> execution data file."
> This is the message I am getting during test executions; hence, reports 
> are not generated.
> I have tried multiple variations of plugins. Below is one of the basic 
> plugins:
> <plugin>
> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> 
> <version>0.8.10</version> <executions> <execution> <goals> 
> <goal>prepare-agent</goal> </goals> </execution> <!-- attached to Maven 
> test phase --> <execution> <id>report</id> <phase>test</phase> <goals> 
> <goal>report</goal> </goals> <configuration> <!-- Sets the path to the file 
> which contains the execution data. --> 
> <dataFile>${basedir}/mqe-unified-platform-brand-tests/target/jacoco.exec</dataFile>
>  
> <!-- Sets the output directory for the code coverage report. --> 
> <outputDirectory>${basedir}/mqe-unified-platform-brand-tests/target/my-reports</outputDirectory>
>  
> </configuration> </execution> </executions> </plugin>
>
> After adding the plugin, executed the tests using Maven.
> The below command is used to run a particular test by specifying the test 
> case ID.
> `mvn clean test -pl mqe-unified-platform-brand-tests -am -Dgroups=22623656`
> Even if the data "file path" is provided explicitly in the plugin, I was 
> getting the same message in the terminal.
> Please advise.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/8fb2881c-ab73-4662-a87a-98bf5e2e6910n%40googlegroups.com.

Reply via email to