Search packages, repositories and app categories

Package detailsv2.1.1

test_process

Test processes: starting; validating stdout and stderr; checking exit code

AndroidiOSmacOSWindowsLinux
30-day downloads
112K
Likes
12
Pub points
70

Install package

flutter pub add test_process

Package Overview

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

The test_process package provides utilities for testing command-line processes in Dart applications. It enables developers to start external processes, capture their stdout and stderr output, and verify exit codes, making it ideal for integration and end-to-end testing of CLI tools. The package is designed to work seamlessly within the Dart test framework, offering reliable process management across multiple platforms. It supports cross-platform testing on Android, iOS, macOS, Windows, and Linux, ensuring consistent behavior in diverse environments.

Use cases

  • Testing CLI tool behavior
  • Validating process output
  • Verifying exit codes
  • Cross-platform integration testing
  • Automated command execution in tests

Key features

  • Start and manage external processes
  • Capture stdout and stderr
  • Check exit codes
  • Cross-platform compatibility
  • Integration with Dart's test framework

Suitable for

  • CLI application developers
  • Test automation engineers
  • Cross-platform testing
  • End-to-end testing of shell commands
  • Dart projects using the test package

Considerations

  • Requires Dart test framework
  • Limited to process-level testing
  • No GUI interaction support
  • Dependent on platform-specific command availability
  • Not suitable for long-running or interactive processes

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 4 items

Source repository

Projects using this package