File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ object Invoker {
2424 // Each thread writes to a separate measurement file, to reduce contention
2525 // and because file appends via FileWriter are not atomic on Windows.
2626 val file = IOUtils .measurementFile(dataDir)
27+ println(" Writing to " + file)
2728 val writer = new FileWriter (file, true )
2829 writer.append(id.toString + ';' )
2930 writer.close()
Original file line number Diff line number Diff line change @@ -57,6 +57,15 @@ class PluginCoverageTest
5757 assertNMeasuredStatements(5 )
5858 }
5959
60+ test(" scoverage should instrument val RHS" ) {
61+ compileCodeSnippet( """ object A {
62+ | val name = BigDecimal(50.0)
63+ |} """ .stripMargin)
64+ assert(! reporter.hasErrors)
65+ assert(! reporter.hasWarnings)
66+ assertNMeasuredStatements(1 )
67+ }
68+
6069 test(" scoverage should instrument all case statements in an explicit match" ) {
6170 compileCodeSnippet( """ trait A {
6271 | def foo(name: Any) = name match {
You can’t perform that action at this time.
0 commit comments