TesterMixin class abstract mixin

Implementers

Constructors

TesterMixin()
const

Properties

bindings Bindings
no setter
findFile FindFile
no setter
fs → FileSystem
no setter
hashCode int
The hash code for this object.
no setterinherited
logger → Logger
no setter
pubspecLock PubspecLock
no setter
pubspecYaml PubspecYaml
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addTestFlags<T>(Command<T> command) → void
cleanUpOptimizedFiles(Iterable<String?> optimizedFiles) → void
createTestCommand({required String projectRoot, required DetermineFlutterOrDart tool, required String relativeProjectRoot, required List<String> flutterArgs, required List<String> dartArgs, required List<String> tests}) CommandToRun
getArgs<T>(Command<T> command) → ({List<String> both, List<String> dart, List<String> flutter})
getCommandsToRun(Iterable<PackageToTest> packagesToTest, {required List<String> flutterArgs, required List<String> dartArgs}) Iterable<CommandToRun>
getPackagesToTest(List<String> testDirs, Map<String, DetermineFlutterOrDart> dirTools, {required bool optimize}) → (Iterable<PackageToTest>?, ExitCode?)
getTestDirs(Iterable<String> pubspecs, {required bool isFlutterOnly, required bool isDartOnly}) → ((List<String>, Map<String, DetermineFlutterOrDart>)?, ExitCode?)
This method is used to get the test directories and the tools to run the tests
getTestsFromProvided(List<String> providedTests) List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
omitOptimizedTest(List<FileSystemEntity> allFiles) Iterable<String>
packageRootFor(String filePath) String
prepareOptimizedFilesFromDirs(List<String> testDirs, Map<String, DetermineFlutterOrDart> dirTools) Iterable<PackageToTest>
runCommands(Iterable<CommandToRun> commandsToRun, {required bool runConcurrently, required bool bail}) Future<ExitCode>
toString() String
A string representation of this object.
inherited
warnDartOrFlutterTests({required bool isFlutterOnly, required bool isDartOnly}) → void
writeOptimizedFile(Iterable<String> files, {required String testDir}) String
The files param's key is the value of the type of test

Operators

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

Constants

optimizedTestBasename → const String