Hi,
what I can add here is that at a project we run > 100'000 tests with
EclEmma on Windows. The tests run for about 10min. No issues like this
so far.
I'm pretty sure this is related to a JVM shutdown problem like the issue
Evgeny mentioned.
As a workaround you might block execution in your "last" test and
request coverage data from the coverage view manually while the JVM is
still running.
Regards,
-marc
On 2017-09-12 18:37, Evgeny Mandrikov wrote:
> Successfully executed 10000 generated tests for 10000 generated classes
> (generator in attachment) with EclEmma on Windows 10, Mac OS X and Linux.
>
> As wild guess: connection between JVM with tests and IDE is established at
> startup, data is written at termination (shutdown hook). Is it possible that
> something in your environment (OS, firewall) kills connection while it is
> inactive between opening and writing? How long execution of tests takes?
>
> Regards,
> Evgeny
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/d476de3e-e265-448a-8cee-3899d0a52735%40googlegroups.com
> [1].
> For more options, visit https://groups.google.com/d/optout.
Links:
------
[1]
https://groups.google.com/d/msgid/jacoco/d476de3e-e265-448a-8cee-3899d0a52735%40googlegroups.com?utm_medium=email&utm_source=footer
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/7b052f6250e57a76b331c01840838d82%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.
import os
os.makedirs("src/main/java/")
os.makedirs("src/test/java/")
file = open("pom.xml", "w")
file.write(
"""<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>example</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
</dependencies>
</project>""")
file.close()
for x in range(0, 10000):
file = open("src/main/java/C%d.java" % x, "w")
file.write(
"""
public class C%d {
}
""" % x)
file.close()
file = open("src/test/java/C%dTest.java" % x, "w")
file.write(
"""
public class C%dTest {
@org.junit.Test
public void test() {
new C%d();
}
}
""" % (x, x))
file.close()