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 String relativeProjectRoot, required DetermineFlutterOrDart tool, 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(Map<String, DetermineFlutterOrDart> testFiles, {required List<String> flutterArgs, required List<String> dartArgs}) List<CommandToRun>
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
getTestsFromDirs(List<String> testDirs, Map<String, DetermineFlutterOrDart> dirTools, {required bool optimize}) → (Map<String, DetermineFlutterOrDart>?, ExitCode?)
getTestsFromProvided(List<String> providedTests) List<String>
getTestType(String path, {required bool isFlutter}) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
packageRootFor(String filePath) String
prepareOptimizedFilesFromDirs(List<String> testDirs, Map<String, DetermineFlutterOrDart> dirTools) Map<String, DetermineFlutterOrDart>
runCommands(List<CommandToRun> commandsToRun, {required bool runConcurrently, required bool bail}) Future<ExitCode>
separateTestFiles(List<FileSystemEntity> allFiles, {required bool isFlutter}) Map<String, List<String>>
toString() String
A string representation of this object.
inherited
warnDartOrFlutterTests({required bool isFlutterOnly, required bool isDartOnly}) → void
writeOptimizedFiles(Map<String, List<String>> files, {required String testDir, required DetermineFlutterOrDart tool}) Map<String, DetermineFlutterOrDart>
The files param's key is the value of the type of test

Operators

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

Static Methods

optimizedTestFileName(String type) String

Constants

optimizedTestBasename → const String