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
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.
- mutation_test
Command line tool to measure test quality using mutation testing.
68Compare
Works with
Packages commonly used together with test_api: ones it builds on, ones built on it, and its own family.
- stack_tracetest_api depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- asynctest_api depends on itUtility classes and helpers that extend Dart's async library.
- source_spantest_api depends on itStandard representation for source code locations, spans, and human-friendly error messages.
- string_scannertest_api depends on itA class for parsing strings using a sequence of patterns.
- term_glyphtest_api depends on itProvides useful Unicode glyphs and plain ASCII alternatives for command-line applications.
- boolean_selectortest_api depends on itParses and evaluates simplified Dart-like boolean expression strings.
- stream_channeltest_api depends on itAn abstraction for two-way communication channels based on the Dart Stream class.
- analyzerSame familyPerforms static analysis of Dart code for tool integration and embedding.