搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目