Search packages, repositories and app categories

Package detailsv1.1.7

glados

A simple testing framework that tries to break your properties.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
30.6K
Likes
52
Pub points
150

Install package

flutter pub add glados

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Glados is a property-based testing framework for Dart and Flutter that automatically generates test cases to validate the correctness of your code. It focuses on uncovering edge cases by systematically breaking properties, making it ideal for verifying complex logic. By defining invariants or expected behaviors, Glados runs numerous randomized inputs to ensure robustness. It integrates seamlessly into Flutter projects across all major platforms, enhancing confidence in code quality through rigorous testing.

Use cases

  • Validating complex business logic
  • Testing state transitions
  • Ensuring data integrity
  • Verifying mathematical operations
  • Automated regression testing

Key features

  • Property-based test generation
  • Random input synthesis
  • Edge case discovery
  • Cross-platform support
  • Easy integration with Flutter
  • Minimal boilerplate

Suitable for

  • Developers seeking deep code validation
  • Teams using TDD/BDD practices
  • Projects with high reliability requirements
  • Flutter apps needing thorough testing
  • Test automation enthusiasts

Considerations

  • May require learning property-based testing concepts
  • Can generate flaky tests if not properly configured
  • Best used alongside unit and integration tests
  • Performance impact with large test sets
  • Limited documentation compared to mainstream frameworks

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package