Skip to content
pubscout

test_api

0.7.15, released 6 weeks ago by tools.dart.dev

The user facing API for structuring Dart tests and checking expectations.

WASM-ready
$ flutter pub add test_api
Source repository

What it does

Provides core APIs for writing and structuring tests in Dart. It supplies the foundational definitions for tests, groups, and expectations.

AI-written summary of version 0.7.15, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building testing tools or libraries that need to hook into the test execution structure.

Skip it when

  • You are writing standard unit or integration tests for a Dart or Flutter application (use package:test instead).

Strengths

  • Provides the underlying API required to structure tests and check expectations.
  • Actively maintained and versioned alongside core testing infrastructure.

Weaknesses

  • Not intended to be publicly used directly for standard application testing.
  • API may take time to stabilize according to the documentation.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
9

Alternatives

Packages that do the same job and could replace test_api.

Works with

Packages commonly used together with test_api: ones it builds on, ones built on it, and its own family.