패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.1.1

test_process

테스트 프로세스: 시작; stdout 및 stderr 검증; 종료 코드 확인

AndroidiOSmacOSWindowsLinux
30일 다운로드
11.2만
좋아요
12
Pub 점수
70

패키지 설치

flutter pub add test_process

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

test_process 패키지는 Dart 애플리케이션에서 명령줄 프로세스를 테스트하기 위한 유틸리티를 제공합니다. 개발자는 외부 프로세스를 시작하고, 그 stdout 및 stderr 출력을 캡처하며, 종료 코드를 검증할 수 있게 해주어 CLI 도구의 통합 및 엔드투엔드 테스트에 이상적입니다. 이 패키지는 Dart 테스트 프레임워크와 원활하게 작동하도록 설계되어 다양한 플랫폼에서 신뢰할 수 있는 프로세스 관리를 제공합니다. Android, iOS, macOS, Windows, Linux에서 크로스플랫폼 테스트를 지원하여 다양한 환경에서 일관된 동작을 보장합니다.

사용 사례

  • CLI 도구 동작 테스트
  • 프로세스 출력 검증
  • 종료 코드 확인
  • 크로스 플랫폼 통합 테스트
  • 테스트에서의 자동 명령 실행

주요 기능

  • 외부 프로세스 시작 및 관리
  • stdout 및 stderr 캡처
  • 종료 코드 확인
  • 크로스 플랫폼 호환성
  • Dart 테스트 프레임워크와의 통합

적합한 대상

  • CLI 애플리케이션 개발자
  • 테스트 자동화 엔지니어
  • 크로스 플랫폼 테스트
  • 쉘 명령어의 엔드 투 엔드 테스트
  • test 패키지를 사용하는 Dart 프로젝트

고려 사항

  • Dart 테스트 프레임워크 필요
  • 프로세스 수준 테스트에 한정
  • GUI 상호작용 지원 없음
  • 플랫폼별 명령 사용 가능성에 따라 달라짐
  • 장시간 실행 또는 상호작용 프로세스에 적합하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

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

카테고리

의존성

의존성 목록 4 개

소스 저장소

이 패키지를 사용하는 프로젝트