blob: e16fb8efb8fc5e6702963f5fb78f321b00897c5e [file] [log] [blame]
// Copyright 2016 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import 'dart:io';
import 'report.dart';
import '../globals.dart';
class CoverageReport extends Report {
Directory libDirectory;
CoverageReport(String reportDataPath, String libPath, String outputPath)
: super(reportDataPath, outputPath) {
this.libDirectory = new Directory(libPath);
void writeReport() {
// Move the lib folder into the output directory
Process.runSync('cp', ['-r', libDirectory.path, outputDirectory.path]);
ProcessResult result = Process.runSync(
['-o', outputDirectory.path, reportDataFile.path]
if (result.stderr.isNotEmpty) {
(String line) => printError(line)