IssueTestHelper class

Helper for creating end-to-end issue reproduction tests.

Creates a temporary project, generates bridges, and runs D4rt scripts to verify whether a known issue reproduces.

Constructors

IssueTestHelper({required String issueId, String packageName = 'test_pkg', required Map<String, String> sourceFiles, required String barrelContent, required String d4rtScript, TestModuleConfig moduleConfig = const TestModuleConfig(), bool verbose = false, List<String> additionalBarrelFiles = const [], List<String> additionalSourceImports = const []})

Properties

additionalBarrelFiles List<String>
Additional barrel files for multi-barrel testing.
final
additionalSourceImports List<String>
Additional source imports for multi-barrel testing.
final
barrelContent String
Content for the barrel file (e.g., "export 'src/my_class.dart';").
final
d4rtScript String
D4rt script source code to execute against the generated bridges.
final
hashCode int
The hash code for this object.
no setterinherited
issueId String
The issue ID (e.g., 'GEN-001').
final
moduleConfig TestModuleConfig
Module configuration for bridge generation.
final
packageName String
Package name for the test project.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceFiles Map<String, String>
Source files to create in the project.
final
verbose bool
Whether to use verbose output during generation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run() Future<IssueTestResult>
Run the complete test: generate bridges, then execute D4rt script.
runGenerationOnly() Future<IssueTestResult>
Run only bridge generation (skip D4rt execution).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited