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