File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/main/scala/org/scalescc/maven Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import org.apache.maven.project.MavenProject
55import org .apache .maven .plugin .descriptor .PluginDescriptor
66import org .apache .maven .settings .Settings
77import org .apache .maven .plugin .AbstractMojo
8- import scales .InstrumentationRuntime
8+ import scales .{ Env , IOUtils }
99
1010/** @author Stephen Samuel */
1111@ Mojo (name = " report" ,
@@ -25,8 +25,13 @@ class ReportMojo extends AbstractMojo {
2525
2626 def execute () {
2727 getLog.info(" Creating report" )
28- getLog.info(" Coverage" + System .identityHashCode(InstrumentationRuntime .coverage))
29- getLog.info(" Statements: " + InstrumentationRuntime .coverage.statements)
28+
29+ val coverage = IOUtils .deserialize(Env .coverageFile)
30+ val measurements = IOUtils .invoked(Env .measurementFile)
31+ coverage.apply(measurements)
32+
33+ getLog.info(" Coverage" + System .identityHashCode(coverage))
34+ getLog.info(" Statements: " + coverage.statements)
3035 getLog.info(" Writing report [todo]" )
3136 }
3237}
You can’t perform that action at this time.
0 commit comments