dart_test_tools 4.9.0 copy "dart_test_tools: ^4.9.0" to clipboard
dart_test_tools: ^4.9.0 copied to clipboard

Additional tools and helpers for writing dart unit tests.

1
likes
100/ 160
pub points
659
downloads

We analyzed this package 40 hours ago, and awarded it 100 pub points (of a possible 160):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

failed
Provide documentation
0 / 20trigger folding of the section

0/10 points: 20% or more of the public API has dartdoc comments

0 out of 103 API elements (0.0 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: aur, cider, dart_test_tools, dart_test_tools.CiderPlugin, dart_test_tools.CiderPlugin.call.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

failed
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:dart_test_tools/dart_test_tools.dart that imports:
  • package:dart_test_tools/lint.dart that imports:
  • package:dart_test_tools/src/lint/test_import_linter.dart that imports:
  • package:dart_test_tools/src/lint/common/linter_mixin.dart that imports:
  • package:dart_test_tools/src/lint/common/linter.dart that imports:
  • package:dart_test_tools/src/lint/common/file_result.dart that imports:
  • package:analyzer/dart/ast/ast.dart that imports:
  • package:analyzer/src/generated/source.dart that imports:
  • package:analyzer/src/generated/engine.dart that imports:
  • package:analyzer/error/listener.dart that imports:
  • package:analyzer/error/error.dart that imports:
  • package:analyzer/src/error/error_code_values.g.dart that imports:
  • package:analyzer/src/generated/parser.dart that imports:
  • package:analyzer/src/fasta/ast_builder.dart that imports:
  • package:analyzer/src/generated/utilities_dart.dart that imports:
  • package:analyzer/src/dart/element/element.dart that imports:
  • package:analyzer/src/summary2/reference.dart that imports:
  • package:analyzer/dart/element/element.dart that imports:
  • package:analyzer/src/dart/resolver/scope.dart that imports:
  • package:analyzer/src/dart/element/type.dart that imports:
  • package:analyzer/src/dart/element/type_system.dart that imports:
  • package:analyzer/src/dart/element/well_bounded.dart that imports:
  • package:analyzer/src/dart/element/type_algebra.dart that imports:
  • package:analyzer/src/summary2/record_type_builder.dart that imports:
  • package:analyzer/src/dart/element/type_visitor.dart that imports:
  • package:analyzer/src/summary2/named_type_builder.dart that imports:
  • package:analyzer/src/summary2/link.dart that imports:
  • package:analyzer/src/summary2/variance_builder.dart that imports:
  • package:analyzer/src/summary2/function_type_builder.dart that imports:
  • package:analyzer/src/dart/ast/extensions.dart that imports:
  • package:analyzer/src/dart/ast/ast.dart that imports:
  • package:analyzer/src/generated/resolver.dart that imports:
  • package:analyzer/src/generated/static_type_analyzer.dart that imports:
  • package:analyzer/src/dart/resolver/invocation_inference_helper.dart that imports:
  • package:analyzer/src/dart/resolver/invocation_inferrer.dart that imports:
  • package:analyzer/src/dart/element/member.dart that imports:
  • package:analyzer/dart/analysis/session.dart that imports:
  • package:analyzer/file_system/file_system.dart that imports:
  • package:analyzer/src/file_system/file_system.dart that imports:
  • package:analyzer/src/util/uri.dart that imports:
  • package:analyzer/src/summary/package_bundle_reader.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:dart_test_tools/dart_test_tools.dart that imports:
  • package:dart_test_tools/test.dart that imports:
  • package:dart_test_tools/src/test/test_env.dart that imports:
  • package:dotenv/dotenv.dart that imports:
  • package:dotenv/src/dotenv.dart that imports:
  • package:dotenv/src/parser.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
30 / 50trigger folding of the section

30/50 points: code has no errors, warnings, lints, or formatting issues

Found 79 issues. Showing the first 2:

WARNING: The parameter type of '==' operators should be non-nullable.

lib/src/aur/aur_options.freezed.dart:160:17

    ╷
160 │   bool operator ==(dynamic other) {
    │                 ^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/aur/aur_options.freezed.dart

WARNING: The parameter type of '==' operators should be non-nullable.

lib/src/aur/aur_options.freezed.dart:334:17

    ╷
334 │   bool operator ==(dynamic other) {
    │                 ^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/aur/aur_options.freezed.dart

failed
Support up-to-date dependencies
30 / 40trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
analyzer ^5.10.0 5.13.0 7.1.0
args ^2.4.0 2.6.0 2.6.0
checked_yaml ^2.0.2 2.0.3 2.0.3
cider ^0.1.5 0.1.6 0.2.8
dotenv ^4.1.0 4.2.0 4.2.0
freezed_annotation ^2.2.0 2.4.4 2.4.4
json_annotation ^4.8.0 4.9.0 4.9.0
lint ^2.0.1 2.3.0 2.3.0
logging ^1.1.1 1.3.0 1.3.0
meta ^1.8.0 1.16.0 1.16.0
mocktail ^0.3.0 0.3.0 1.0.4
path ^1.8.2 1.9.1 1.9.1
pub_semver ^2.1.3 2.1.5 2.1.5
pubspec_parse ^1.2.2 1.4.0 1.4.0
stack_trace ^1.11.0 1.12.1 1.12.1
stream_channel ^2.1.1 2.1.3 2.1.3
test ^1.22.0 1.25.8 1.25.14
yaml ^3.1.1 3.1.3 3.1.3
yaml_writer ^1.0.3 1.0.3 2.0.1
Transitive dependencies
Package Constraint Compatible Latest
_fe_analyzer_shared - 61.0.0 78.0.0
async - 2.12.0 2.12.0
boolean_selector - 2.1.2 2.1.2
change - 0.6.0 0.7.5
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
coverage - 1.11.1 1.11.1
crypto - 3.0.6 3.0.6
file - 7.0.1 7.0.1
frontend_server_client - 4.0.0 4.0.0
glob - 2.1.2 2.1.2
http - 1.2.2 1.2.2
http_multi_server - 3.2.2 3.2.2
http_parser - 4.1.1 4.1.1
intl - 0.20.1 0.20.1
io - 1.0.5 1.0.5
js - 0.7.1 0.7.1
klizma - 0.2.1 0.2.1
markdown - 7.2.2 7.2.2
marker - 0.5.1 0.6.0
matcher - 0.12.16+1 0.12.17
mime - 2.0.0 2.0.0
node_preamble - 2.0.2 2.0.2
package_config - 2.1.1 2.1.1
pool - 1.5.1 1.5.1
rfc_6901 - 0.1.1 0.2.0
shelf - 1.4.2 1.4.2
shelf_packages_handler - 3.0.2 3.0.2
shelf_static - 1.1.3 1.1.3
shelf_web_socket - 2.0.1 2.0.1
source_map_stack_trace - 2.1.2 2.1.2
source_maps - 0.10.13 0.10.13
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
test_api - 0.7.3 0.7.4
test_core - 0.6.5 0.6.8
typed_data - 1.4.0 1.4.0
version_manipulation - 0.1.2 0.2.0
vm_service - 14.3.1 15.0.0
watcher - 1.1.1 1.1.1
web - 1.1.0 1.1.0
web_socket - 0.1.6 0.1.6
web_socket_channel - 3.0.1 3.0.1
webkit_inspection_protocol - 1.2.1 1.2.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Found 4 issues. Showing the first 2:

The constraint `^5.10.0` on analyzer does not support the stable version `6.0.0`.

Try running dart pub upgrade --major-versions analyzer to update the constraint.

The constraint `^0.1.5` on cider does not support the stable version `0.2.0`.

Try running dart pub upgrade --major-versions cider to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.17, Dart 3.6.0.

Check the analysis log for details.