flutter_checks 0.0.1 copy "flutter_checks: ^0.0.1" to clipboard
flutter_checks: ^0.0.1 copied to clipboard

Support legacy matchers in `package:checks` expectations.

flutter_checks #

Add support for legacy matchers from package:flutter_test to package:checks expectations.

Features #

  • Support for all subclasses of FinderBase (including Finder).
  • Support for accessibility checks.

Getting started #

This is wrapper around package:flutter_test and legacy_checks.

You'll only want this package if you're using Flutter. If you have an existing pure-Dart project with tests using package:matcher (exposed by package:test), then you might want legacy_checks instead, though it's worth considering if migrating directly to package:checks would be more beneficial, as package:checks is better tested, at least, and the cost of migration is about the same.

If you have existing custom matchers, or use matchers that aren't yet ported to package:checks, you will want legacy_checks package. It can be installed with dart pub add legacy_checks.

If you are using Flutter, you will want this package.

You probably don't want this package if you're getting started on a new project; rather, use package:checks directly. If you're using Flutter, install flutter_checks instead, via flutter pub add flutter_checks. It provides a much safer, more convenient API surface out-of-the-box.

If you have an existing pure-Dart project with tests using package:matcher (exposed by package:test), then you will might want this package. Consider if migrating directly to package:checks would be more beneficial, as package:checks is better tested, at least, and the cost of migration is about the same.

Usage #

check(42).legacyMatcher(matcher.equals(42));

Additional information #

This package is maintained solely for the use of @PHS-TSA, but is published so anyone can use it if they find it helpful. We intend on strictly adhering to SemVer, but that doesn't mean that we'll shy away from ergonomics in the name of back-compat. Feel free to file issues, we appreciate it. We also accept PRs, but please read the contributing guidelines first (TL;DR: Don't send anything enormous our way without prior communtation, and follow to CoC).

1
likes
0
points
7.5k
downloads

Publisher

unverified uploader

Weekly Downloads

Support legacy matchers in `package:checks` expectations.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

checks, flutter_test, legacy_checks, matcher

More

Packages that depend on flutter_checks