coveralls 3.2.0

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 75

Coveralls for Dart

Runtime Release License Coverage Build

Send LCOV and Clover coverage reports to the Coveralls service, in Dart.

Resources

License

Coveralls for Dart is distributed under the MIT License.

Changelog

Version 3.2.0

  • Added the Options class, used by the command line interface.
  • Raised the Dart SDK constraint.
  • Updated the package dependencies.

Version 3.1.0

  • Added a user guide based on MkDocs.
  • Added an example code.
  • Raised the Dart SDK constraint.
  • Updated the package dependencies.

Version 3.0.0

  • Breaking change: starting to use and support the Dart 2 SDK.
  • Using optional const and new.
  • Updated the package dependencies.

Version 2.1.0

  • Updated the package dependencies.

Version 2.0.1

  • Fixed a bug: the CLI script doesn't run when using the pub global run command.

Version 2.0.0

  • Breaking change: changed the signature of most class constructors.
  • Breaking change: most class properties are now final.
  • Breaking change: raised the required Dart version.
  • Breaking change: replaced the -f|--file named argument of the CLI script by an anonymous argument (e.g. coveralls lcov.info instead of coveralls -f lcov.info)
  • Breaking change: the version property is now private.
  • Added support for Clover reports.
  • Changed licensing for the MIT License.
  • Replaced the which module by where.
  • Updated the package dependencies.

Version 1.0.0

  • First stable release.

Version 0.3.0

  • Updated the package dependencies.

Version 0.2.0

  • Updated the package dependencies.

Version 0.1.1

  • Updated the documentation.

Version 0.1.0

  • Initial release.

example/main.dart

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');
  }
}

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate coveralls

2. Use it

The package has the following executables:


$ coveralls

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  coveralls: ^3.2.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:coveralls/coveralls.dart';
  
Version Uploaded Documentation Archive
3.2.0 Aug 7, 2018 Go to the documentation of coveralls 3.2.0 Download coveralls 3.2.0 archive
3.1.0 Jul 21, 2018 Go to the documentation of coveralls 3.1.0 Download coveralls 3.1.0 archive
3.0.0 Jun 23, 2018 Go to the documentation of coveralls 3.0.0 Download coveralls 3.0.0 archive
2.1.0 Nov 3, 2017 Go to the documentation of coveralls 2.1.0 Download coveralls 2.1.0 archive
2.0.1 Sep 15, 2017 Go to the documentation of coveralls 2.0.1 Download coveralls 2.0.1 archive
2.0.0 Sep 15, 2017 Go to the documentation of coveralls 2.0.0 Download coveralls 2.0.0 archive
1.0.0 May 15, 2017 Go to the documentation of coveralls 1.0.0 Download coveralls 1.0.0 archive
0.3.0 Mar 25, 2017 Go to the documentation of coveralls 0.3.0 Download coveralls 0.3.0 archive
0.2.0 Feb 20, 2017 Go to the documentation of coveralls 0.2.0 Download coveralls 0.2.0 archive
0.1.1 Feb 17, 2017 Go to the documentation of coveralls 0.1.1 Download coveralls 0.1.1 archive

All 11 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
53
Health:
Code health derived from static analysis. [more]
97
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
75
Learn more about scoring.

We analyzed this package on Aug 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.11.8

Platforms

Detected platforms: Flutter, other

Primary library: package:coveralls/coveralls.dart with components: io.

Suggestions

Format lib/src/cli/options.dart.

Run dartfmt to format lib/src/cli/options.dart.

Format lib/src/io/client.dart.

Run dartfmt to format lib/src/io/client.dart.

Fix additional 16 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/io/configuration.dart (Run dartfmt to format lib/src/io/configuration.dart.)
  • lib/src/io/git.dart (Run dartfmt to format lib/src/io/git.dart.)
  • lib/src/io/job.dart (Run dartfmt to format lib/src/io/job.dart.)
  • lib/src/io/parsers/clover.dart (Run dartfmt to format lib/src/io/parsers/clover.dart.)
  • lib/src/io/parsers/lcov.dart (Run dartfmt to format lib/src/io/parsers/lcov.dart.)
  • lib/src/io/services/appveyor.dart (Run dartfmt to format lib/src/io/services/appveyor.dart.)
  • lib/src/io/services/circleci.dart (Run dartfmt to format lib/src/io/services/circleci.dart.)
  • lib/src/io/services/codeship.dart (Run dartfmt to format lib/src/io/services/codeship.dart.)
  • lib/src/io/services/gitlab_ci.dart (Run dartfmt to format lib/src/io/services/gitlab_ci.dart.)
  • lib/src/io/services/jenkins.dart (Run dartfmt to format lib/src/io/services/jenkins.dart.)
  • lib/src/io/services/semaphore.dart (Run dartfmt to format lib/src/io/services/semaphore.dart.)
  • lib/src/io/services/solano_ci.dart (Run dartfmt to format lib/src/io/services/solano_ci.dart.)
  • lib/src/io/services/surf.dart (Run dartfmt to format lib/src/io/services/surf.dart.)
  • lib/src/io/services/travis_ci.dart (Run dartfmt to format lib/src/io/services/travis_ci.dart.)
  • lib/src/io/services/wercker.dart (Run dartfmt to format lib/src/io/services/wercker.dart.)
  • lib/src/io/source_file.dart (Run dartfmt to format lib/src/io/source_file.dart.)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
build_cli_annotations ^1.0.0 1.0.0
crypto ^2.0.6 2.0.6
http ^0.11.3 0.11.3+17
json_annotation ^1.0.0 1.1.0
lcov ^4.3.0 4.3.0
path ^1.6.2 1.6.2
pubspec_parse ^0.1.2 0.1.2+2
where ^4.3.1 4.3.1
xml ^3.2.0 3.2.0
yaml ^2.1.15 2.1.15
Transitive dependencies
args 1.5.0
async 2.0.8
charcode 1.1.2
collection 1.14.11
convert 2.0.2
http_parser 3.1.3
meta 1.1.6
petitparser 2.0.0
pub_semver 1.4.2
source_span 1.4.1
string_scanner 1.0.3
typed_data 1.1.6
Dev dependencies
build_cli ^1.0.0
build_runner ^0.10.1
build_test ^0.10.3
coverage ^0.12.2
grinder ^0.8.3
json_serializable ^1.0.1
test ^1.3.0