lcov 4.0.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 76

LCOV Reports for Dart

Runtime Release License Coverage Build

Parse and format LCOV coverage reports, in Dart.

Resources

License

LCOV Reports for Dart is distributed under the MIT License.

Changelog

Version 4.0.0

  • Breaking change: starting to use and support the Dart 2 SDK.
  • Added a user guide based on MkDocs.
  • Updated the package dependencies.

Version 3.1.0

  • Updated the package dependencies.

Version 3.0.0

  • Breaking change: changed the signature of most constructors.
  • Breaking change: most properties of data classes are now final.

Version 2.1.0

Version 2.0.1

  • Fixed a bug: a parsing error occurs when the coverage data does not include a test name.

Version 2.0.0

  • Breaking change: changed the Report.parse() static method to the fromCoverage constructor.
  • Breaking change: raised the required Dart version.
  • Updated the package dependencies.

Version 1.0.0

  • First stable release.

Version 0.4.0

  • Breaking change: raised the required Dart version.
  • Updated the package dependencies.

Version 0.3.1

  • Fixed a bug in Report.parse() method.

Version 0.3.0

  • Added the data parameter to the default constructors of the coverage classes.
  • Added the records parameter to the default constructor of the Report class.

Version 0.2.0

  • Breaking change: changed the signature of most default constructors.
  • Empty test names are not included in the report output.

Version 0.1.0

  • Initial release.

1. Depend on it

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


dependencies:
  lcov: "^4.0.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 packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:lcov/lcov.dart';
        
Version Uploaded Documentation Archive
4.0.0 Mar 3, 2018 Go to the documentation of lcov 4.0.0 Download lcov 4.0.0 archive
3.1.0 Nov 3, 2017 Go to the documentation of lcov 3.1.0 Download lcov 3.1.0 archive
3.0.0 Sep 13, 2017 Go to the documentation of lcov 3.0.0 Download lcov 3.0.0 archive
2.1.0 Sep 9, 2017 Go to the documentation of lcov 2.1.0 Download lcov 2.1.0 archive
2.0.1 Aug 8, 2017 Go to the documentation of lcov 2.0.1 Download lcov 2.0.1 archive
2.0.0 Jul 30, 2017 Go to the documentation of lcov 2.0.0 Download lcov 2.0.0 archive
1.0.0 Mar 25, 2017 Go to the documentation of lcov 1.0.0 Download lcov 1.0.0 archive
0.4.0 Feb 18, 2017 Go to the documentation of lcov 0.4.0 Download lcov 0.4.0 archive
0.3.1 Feb 11, 2017 Go to the documentation of lcov 0.3.1 Download lcov 0.3.1 archive
0.3.0 Jan 22, 2017 Go to the documentation of lcov 0.3.0 Download lcov 0.3.0 archive

All 12 versions...

Analysis

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

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

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

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:lcov/lcov.dart.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 6 hints.

    Run dartfmt to format lib/src/branch.dart.

    Run dartfmt to format lib/src/function.dart.

    Similar analysis of the following files failed:

    • lib/src/line.dart (hint)
    • lib/src/record.dart (hint)
    • lib/src/report.dart (hint)
    • lib/src/token.dart (hint)
  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use lcov.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <2.0.0
Dev dependencies
coverage ^0.10.0
grinder ^0.8.1
test ^0.12.30