Package selection guidance compiled from public package information, community data, and project usage.
The process package provides a pluggable and mockable abstraction for invoking external processes in Dart, enabling consistent execution of system commands across platforms. Designed with testing in mind, it allows developers to easily substitute real process execution with mocks during unit tests, improving test reliability and isolation. It supports all major platforms including Android, iOS, macOS, Windows, and Linux, making it ideal for cross-platform applications that require system interaction. The package simplifies integration with command-line tools and shell scripts while maintaining clean, testable code.
Use cases
Unit testing system command invocations
Cross-platform script execution
Mocking external process calls in tests
Integrating with CLI tools
Automating build or deployment tasks
Key features
Pluggable process execution
Built-in mocking support
Cross-platform compatibility
Clean API for command execution
Integration with Dart's testing framework
Suitable for
Test-driven development
CI/CD pipelines
Command-line tool integrations
Dart applications requiring system calls
Developers needing predictable process behavior
Considerations
Requires setup for custom process implementations
Mocking must be explicitly configured in tests
Not intended for high-performance or frequent process spawning
Limited to synchronous and basic asynchronous process handling
Depends on correct platform-specific command paths
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Overview
This repository is home to tooling related Dart packages. Generally, this means
packages published through the
tools.dart.dev publisher that
don't naturally belong to other topic monorepos (like
dart-lang/build,
dart-lang/test, or
dart-lang/shelf).
A client library for authenticating with a remote service via OAuth2 on behalf of a user, and making authorized HTTP requests with the user's OAuth2 credentials.