パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v7.0.0

conduit_test

Conduit アプリケーションの自動テストを書くためのユーティリティ

macOSWindowsLinux
30日間ダウンロード
1470
いいね数
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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。