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

패키지 상세v7.0.0

conduit_test

Conduit 애플리케이션에 대한 자동화된 테스트를 작성하기 위한 유틸리티

macOSWindowsLinux
30일 다운로드
1.5천
좋아요
2
Pub 점수
150

패키지 설치

flutter pub add conduit_test

패키지 개요

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

conduit_test는 Conduit 애플리케이션에 대한 자동 테스트를 작성하는 것을 간소화하기 위한 유틸리티 세트를 제공합니다. 테스트 서버 설정, 데이터베이스 연결 관리, HTTP 요청 및 응답 시뮬레이션을 위한 도구를 제공합니다. Conduit 프레임워크 전용으로 설계되어 개발자가 애플리케이션 로직, 인증 흐름, API 엔드포인트를 쉽게 검증할 수 있도록 합니다. Flutter 및 Dart 프로젝트에 원활하게 통합되며 macOS, Windows, Linux에서 크로스플랫폼 테스트를 지원합니다. 테스트의 신뢰성을 높이고 테스트 스위트 내의 반복 코드를 줄입니다.

사용 사례

  • API 엔드포인트 테스트
  • 인증 워크플로 검증
  • HTTP 요청 시뮬레이션
  • 데이터베이스 통합 테스트
  • 서버 동작 확인
  • 자동화된 회귀 테스트

주요 기능

  • 테스트 서버 설정 유틸리티
  • HTTP 요청 시뮬레이션
  • 데이터베이스 연결 관리
  • 크로스 플랫폼 지원
  • 최소한의 보일러플레이트
  • Conduit 프레임워크와의 통합

적합한 대상

  • Conduit 백엔드 개발자
  • API 테스트 전문가
  • CI/CD 파이프라인 통합자
  • 풀스택 Dart 개발자
  • 테스트 자동화 엔지니어

고려 사항

  • Conduit 프레임워크 필요
  • 서버 측 테스트에 한정
  • 적절한 테스트 환경 설정이 필요합니다
  • UI 테스트에 적합하지 않습니다
  • Conduit의 아키텍처에 따라 다름
  • 전용 테스트 환경에서 가장 잘 사용됩니다

원본 README

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

Linux Windows Macos melos

Conduit is a fork of Stablekernel's Aqueduct, a modern Dart HTTP server framework.

Getting Started

  1. Install Dart.
  2. Activate Conduit.
dart pub global activate conduit
  1. Create a new project.
conduit create my_project
  1. Serve the project.
cd my_project
conduit serve

Building from Source

If you want to contribute to Conduit or build it from source, you will need Melos.

  1. Install Melos:
dart pub global activate melos
  1. Bootstrap the project:
melos bootstrap
  1. Run tests:

[!IMPORTANT] Tests require a running PostgreSQL instance and specific environment variables. You can start the database using Docker: docker-compose -f ci/docker-compose.yaml up -d

export POSTGRES_USER=conduit_test_user
export POSTGRES_PASSWORD=conduit!
export POSTGRES_DB=conduit_test_db
export POSTGRES_PORT=15432
export POSTGRES_HOST=localhost

melos run test-unit

Tutorials, Documentation and Examples

We are currently in the process of collating helpful resources for your edification. Our main docs live here.

Conduit is a close fork to Aqueduct, so Aqueduct examples can be tweaked to work with Conduit here. The major concern is updating the code to use null-safety.

Contributors

j4qfrost
j4qfrost

💻
neterror
neterror

💻
Luis
Luis

💻
Artem Semirenko
Artem Semirenko

🐛 💻
Dmytro Prylutskyi
Dmytro Prylutskyi

💻

카테고리

의존성

의존성 목록 3 개

소스 저장소

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

아직 데이터가 없습니다.