搜尋套件、儲存庫與 APP 分類

套件詳情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 開發人員
  • 測試自動化工程師

使用建議

  • 需要導管框架
  • 僅限伺服器端測試
  • 需要正確的測試環境設置
  • 不適用於UI測試
  • 取決於導管的架構
  • 最佳使用於專用測試環境中

原始 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。