coveralls 5.0.0 coveralls: ^5.0.0 copied to clipboard
Send LCOV and Clover coverage reports to the Coveralls service.
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}');
}
}