TestSmith class

Orchestrates the entire test generation pipeline: scan → parse → detect → generate → write.

Constructors

TestSmith(String projectRoot, {AiTestGenerator? aiGenerator})

Properties

aiGenerator → AiTestGenerator?
final
hashCode → int
The hash code for this object.
no setterinherited
parser → DartAstParser
final
pathMapper → PathMapper
final
projectRoot → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scanner → ProjectScanner
final

Methods

generateAll({GenerateMode mode = GenerateMode.all, bool onlyMissing = false}) → Future<void>
Generates tests for all eligible Dart files in lib/.
generateForFile(String filePath, {bool onlyMissing = false}) → Future<void>
Generates tests for a single file. Used by both generateAll and watch mode.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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