grinder_coveralls 1.1.1

Grinder-Coveralls #

Runtime Release License Coverage Build

Grinder plug-in collecting your code coverage as LCOV and uploading it to the Coveralls service.

This library was created to run tests on the Dart VM exclusively. It has not been tested and likely won't work for compiled Dart code (i.e. Flutter or JavaScript).

Documentation #

Development #

License #

Grinder-Coveralls is distributed under the MIT License.

Changelog #

Version 1.1.1

  • Fixed the GitHub issue #2: a breaking change was introduced in the coverage package.
  • Updated the package dependencies.

Version 1.1.0

  • Raised the Dart SDK constraint.
  • Updated the package dependencies.

Version 1.0.0

  • First stable release.
  • Raised the Dart SDK constraint.
  • Using new language features: collection if and spread operator.
  • Updated the package dependencies.

Version 0.2.0

  • Added unit tests.
  • Updated the documentation.

Version 0.1.0 #

  • Initial release.

example/main.dart

import 'package:grinder/grinder.dart';
import 'package:grinder_coveralls/grinder_coveralls.dart' as coveralls;

@Task('Collects and uploads the coverage data in one pass')
Future<void> collectAndUploadCoverage() async =>
  coveralls.uploadCoverage(await coveralls.collectCoverage(getDir('test'), reportOn: [libDir.path]));

@Task('Collects the coverage data and saves it as LCOV format')
Future<void> collectCoverage() =>
  coveralls.collectCoverage(getDir('test'), reportOn: [libDir.path], saveAs: 'path/to/lcov.info');

@Task('Uploads the LCOV coverage report to the Coveralls service')
Future<void> uploadCoverage() async =>
  coveralls.uploadCoverage(await getFile('path/to/lcov.info').readAsString());

Use this package as a library

1. Depend on it

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


dependencies:
  grinder_coveralls: ^1.1.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


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

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

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: other

Primary library: package:grinder_coveralls/grinder_coveralls.dart with components: io, mirrors.

Health suggestions

Fix lib/src/collector.dart. (-0.50 points)

Analysis of lib/src/collector.dart reported 1 hint:

line 128 col 7: DO use curly braces for all flow control structures.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.0 <3.0.0
code_builder ^3.2.0 3.2.0
coverage ^0.13.2 0.13.2
coveralls ^5.3.0 5.4.0
crypto ^2.0.6 2.1.2
grinder ^0.8.3 0.8.3+1
Transitive dependencies
args 1.5.2
async 2.3.0
build_cli_annotations 1.1.0
built_collection 4.2.2
built_value 6.7.0
charcode 1.1.2
cli_util 0.1.3+2
collection 1.14.12
convert 2.1.1
fixnum 0.10.9
glob 1.1.7
http 0.12.0+2
http_parser 3.1.3
json_annotation 3.0.0
lcov 5.4.0
logging 0.11.3+2
matcher 0.12.5
meta 1.1.7
package_config 1.1.0
pedantic 1.8.0+1
petitparser 2.4.0
quiver 2.0.5
source_span 1.5.5
stack_trace 1.9.3
stream_transform 0.0.19
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vm_service_lib 3.22.2+1
where 6.4.0
xml 3.5.0
yaml 2.1.16
Dev dependencies
path ^1.6.4 1.6.4
test ^1.6.5