File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import org.scalatest.mock.MockitoSugar
4
4
import org .scalatest .{FunSuite , OneInstancePerTest }
5
5
import java .io .{FileWriter , File }
6
6
import scala .xml .Utility
7
+ import org .apache .commons .io .FileUtils
7
8
8
9
/** @author Stephen Samuel */
9
10
class IOUtilsTest extends FunSuite with MockitoSugar with OneInstancePerTest {
@@ -54,6 +55,11 @@ class IOUtilsTest extends FunSuite with MockitoSugar with OneInstancePerTest {
54
55
}
55
56
56
57
test(" io utils should parse multiple measurement files" ) {
58
+
59
+ // clean up any existing measurement files
60
+ for ( file <- IOUtils .findMeasurementFiles(FileUtils .getTempDirectoryPath) )
61
+ file.delete()
62
+
57
63
val file1 = File .createTempFile(" scoverage.measurements.1" , " txt" )
58
64
val writer1 = new FileWriter (file1)
59
65
writer1.write(" 1;5;9;;10;" )
You can’t perform that action at this time.
0 commit comments