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 {
24
24
// Each thread writes to a separate measurement file, to reduce contention
25
25
// and because file appends via FileWriter are not atomic on Windows.
26
26
val file = IOUtils .measurementFile(dataDir)
27
+ println(" Writing to " + file)
27
28
val writer = new FileWriter (file, true )
28
29
writer.append(id.toString + ';' )
29
30
writer.close()
Original file line number Diff line number Diff line change @@ -57,6 +57,15 @@ class PluginCoverageTest
57
57
assertNMeasuredStatements(5 )
58
58
}
59
59
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
+
60
69
test(" scoverage should instrument all case statements in an explicit match" ) {
61
70
compileCodeSnippet( """ trait A {
62
71
| def foo(name: Any) = name match {
You can’t perform that action at this time.
0 commit comments