Open MEZk opened 8 years ago
"cobertura:cobertura" still generates the coverage report, with the error on lamdas "->" syntax. The report looks fine in my simple case.
Cobertura also skips classes which have import from java.util.stream package. For example, if the class imports java.util.stream.Stream, Cobertura will not generate coverage report for the class. The problem is also mentioned in #18 where you can find an example project.
Also fails when using the "default" keyword in interface methods:
[ERROR] net.sourceforge.cobertura.javancss.parser.ParseException: Encountered " "default" "default "" at line 38, column 5.
Was expecting one of:
"abstract" ...
"boolean" ...
Hello!
I have the following class which uses stream feature from Java 1.8:
I also wrote UT for the class:
My pom.xml:
When I try to execute the following command:
Cobertura crashes. Stack trace:
The full stacktrace.txt.
Nevertheless, Cobertura works fine if it is run with the following command: