coveralls 5.10.0 coveralls: ^5.10.0 copied to clipboard
Send LCOV and Clover coverage reports to the Coveralls service.
// ignore_for_file: avoid_print
import "dart:io";
import "package:coveralls/coveralls.dart";
/// Uploads a coverage report.
Future<void> main() async {
try {
final coverage = File("/path/to/coverage.report");
await Client().upload(await coverage.readAsString());
print("The report was sent successfully.");
}
on Exception catch (err) {
print("An error occurred: $err");
if (err is ClientException) print("From: ${err.uri}");
}
}