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

套件詳情v3.5.23

build_test

用於撰寫建構器單元測試的工具。

macOSWindowsLinux
近 30 天下載
24.2萬
喜歡數
11
Pub 分數
140

安裝套件

flutter pub add build_test

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Dart 套件,提供用於撰寫建構執行者與轉換器單元測試的實用工具。它讓開發人員能夠獨立測試程式碼產生與轉換邏輯的行為,確保建構流程的正確性與可靠性。此套件整合至更廣泛的建構系統生態系中,提供設定測試環境、模擬輸入與驗證輸出的輔助工具。專為自動化測試工作流程設計,支援簡單與複雜的建構情境。

適用情境

  • 測試自定義建構器
  • 驗證代碼生成邏輯
  • 模擬建構環境
  • 除錯變壓器行為
  • 確保建構一致性

主要特色

  • 特定於測試的建構工具
  • 輸入/輸出模擬
  • 與建構系統的整合
  • 支援隔離測試
  • 模擬建構上下文

適合對象

  • Dart 套件維護者
  • 建構系統開發者
  • 程式碼產生工具創建者
  • 測試建構邏輯

使用建議

  • 需要了解建構系統
  • 不適用於執行時測試
  • 依賴 build_runner
  • 限於建構相關測試
  • 需要正確的設定才能使用模擬

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Questions? Suggestions? Found a bug? Please file an issue or start a discussion.

Code generation for Flutter and Dart packages.

See the build_runner package documentation for how to use build_runner builders in your package to add serialization, data classes, data binding, dependency injection, mocking and more.

See the build package documentation to create your own builder.

This repo also hosts the following builders and packages for use by builders.

所屬分類

依賴

依賴清單 15 項

原始碼儲存庫

使用此套件的專案