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

套件詳情v1.1.7

glados

一個簡單的測試框架,試圖破壞您的屬性。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
3.1萬
喜歡數
52
Pub 分數
150

安裝套件

flutter pub add glados

套件介紹

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

Glados 是一個基於屬性的 Dart 與 Flutter 測試框架,能自動產生測試案例來驗證程式碼的正確性。它透過系統性地打破屬性來揭露邊界情況,非常適合驗證複雜邏輯。透過定義不變量或預期行為,Glados 會執行大量隨機輸入,確保系統的穩健性。它可無縫整合至所有主要平台的 Flutter 專案中,透過嚴格的測試提升對程式碼品質的信心。

適用情境

  • 驗證複雜的業務邏輯
  • 測試狀態轉換
  • 確保資料完整性
  • 驗證數學運算
  • 自動化回歸測試

主要特色

  • 基於屬性的測試產生
  • 隨機輸入合成
  • 邊緣情況發現
  • 跨平台支援
  • 與 Flutter 的輕鬆整合
  • 最小化樣板程式碼

適合對象

  • 尋求深度代碼驗證的開發者
  • 使用TDD/BDD實踐的團隊
  • 高可靠性要求的項目
  • 需要全面測試的Flutter應用
  • 測試自動化愛好者

使用建議

  • 可能需要學習基於屬性的測試概念
  • 如果未正確配置,可能會產生不穩定的測試
  • 最好與單元測試和整合測試一起使用
  • 大型測試集的效能影響
  • 與主流框架相比,文件有限

原始 README

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

Analyze and test

Welcome to the Glados repository!

This repository contains the glados core package, a property-based testing framework for Dart. For a general introduction, check out the pub.dev page.

It also contains several glados-based packages for testing with types of third-party packages. If you create generators for third-party libraries, but you're unsure whether you want to maintain it, don't hesitate to file a PR; I can take care of publishing it, and the community can more easily find and improve it.

Currently, this repo contains the following packages for third-party libraries:

  • tuple_glados

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案