Search packages, repositories and app categories

Package detailsv2.0.2

test_descriptor

An API for defining and verifying files and directory structures.

AndroidiOSmacOSWindowsLinux
30-day downloads
224K
Likes
4
Pub points
160

Install package

flutter pub add test_descriptor

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

test_descriptor is a Dart package designed to simplify the creation and validation of file and directory structures during testing. It provides a clean, expressive API for defining expected file layouts, making it easier to set up test fixtures and verify filesystem states. Ideal for integration and end-to-end tests involving file operations, it ensures consistency and reduces boilerplate when working with complex directory hierarchies. The package is maintained by the Dart team and integrates seamlessly with the test framework.

Use cases

  • Testing file system interactions
  • Setting up test fixtures
  • Verifying directory structures
  • Validating generated files
  • Integration testing with file I/O
  • Automated test setup

Key features

  • Declarative file structure definition
  • Built-in verification utilities
  • Supports nested directories
  • Easy to read and maintain
  • Works with test package
  • Cross-platform compatibility

Suitable for

  • Unit and integration tests
  • File-based tool testing
  • Code generation validation
  • CI/CD pipeline testing
  • Dart package development
  • Test fixture management

Considerations

  • Requires dependency on the test package
  • Not intended for runtime use
  • Limited to test environments only
  • May increase test suite complexity if overused
  • Best used with other testing utilities
  • Does not handle file content diffs directly

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Dart CI OpenSSF Scorecard

What's here?

Welcome! package:test is the standard testing library for Dart and Flutter. If you have questions about Dart testing, please see the docs for package:test. package:test_api and package:test_core are implementation details and generally not user-facing.

package:checks is a relatively new library for expressing test expectations. It's a more modern version of package:matcher and features a literate API.

Packages

Package Description Issues Version
checks A framework for checking values against expectations and building custom expectations. issues pub package
fake_async Fake asynchronous events such as timers and microtasks for deterministic testing. issues pub package
matcher Support for specifying test expectations via an extensible Matcher class. Also includes a number of built-in Matcher implementations for common cases. issues pub package
test A full featured library for writing and running Dart tests across platforms. issues pub package
test_api The user facing API for structuring Dart tests and checking expectations. pub package
test_core A basic library for writing tests and running them on the VM. pub package
test_descriptor An API for defining and verifying files and directory structures. issues pub package
test_process Test processes: starting; validating stdout and stderr; checking exit code. issues pub package

Categories

Dependencies

Dependency list 5 items

Source repository

Projects using this package