flame_test
2.3.1, released 3 months ago by flame-engine.org
Classes and helpers for testing applications built with the Flame Engine.
What it does
Provides a set of useful helpers and utilities designed specifically for testing games and applications that use the Flame Engine. It is also used internally for testing parts of Flame itself.
AI-written summary of version 2.3.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are writing unit or widget tests for a Flame game.
- You need specialized utilities to test Flame components and games.
Skip it when
- You are not using the Flame Engine in your application.
- You only need standard Flutter widget testing without game engine features.
Strengths
- Tailored specifically for the Flame game engine ecosystem.
- Helps simplify testing loops and component behaviors in Flame.
Weaknesses
- Strictly tied to the Flame engine; useless for non-Flame projects.
- Documentation outside of the package description and repository is sparse.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
Add the dependency to your pubspec.yaml file alongside flutter_test and flame.
not documentedAlternatives
Packages that do the same job and could replace flame_test.
- espresso
Java classes for testing Flutter apps using Espresso.
73Compare - patrol
Multiplatform E2E UI testing framework for Flutter
89Compare - patrol_cli
Command-line tool to run and debug Patrol UI tests on multiple platforms
89Compare - bdd_widget_test
Generate Flutter widget tests from Gherkin feature files
88Compare
Works with
Packages commonly used together with flame_test: ones it builds on, ones built on it, and its own family.
- testflame_test depends on itA full featured library for writing and running Dart tests across platforms.
- typed_dataflame_test depends on itUtility functions and classes for easier work with dart:typed_data lists.
- vector_mathflame_test depends on itVector math library for 2D/3D/4D vectors, matrices, quaternions, and geometry.
- flameflame_test depends on itA minimalist Flutter game engine, provides a nice set of somewhat independent modules you can choose from.
- flame_audioSame familyAudio support wrapper for the Flame game engine
- flame_svgSame familyAdds SVG rendering support for the Flame game engine
- flame_blocSame familyIntegration for the Bloc state management library to Flame games.
- flame_lintSame familyA strict and satisfying lint package for Flame, Flutter, or Dart projects.