UnitTestTask class
- Inheritance
-
- Object
- Task<
TestReport, TestReport> - ShellTask<
TestReport> - UnitTestTask
Constructors
- UnitTestTask.new({required String projectPath, required ProjectType projectType, String? testName, String? testFilePath})
Properties
-
arguments
→ List<
String> -
finalinherited
- executable → String
-
finalinherited
- fullCommand → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
unique task id (UUID v1 time based)
finalinherited
- isCancelled → bool
-
no setterinherited
- isCompleted → bool
-
no setterinherited
- isFailed → bool
-
no setterinherited
- isIdle → bool
-
no setterinherited
- isPending → bool
-
no setterinherited
- isRunning → bool
-
no setterinherited
- name → String
-
no setteroverride
- projectPath → String
-
final
- projectType → ProjectType
-
final
-
result
↔ TaskResult<
TestReport, TestReport> ? -
The result of the task if completed
Contains the value, error and stack trace
getter/setter pairinherited
-
resultAsync
→ Future<
TestReport?> -
The result of the task as a future
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → TaskStatus
-
The current status of the task
no setterinherited
- testFilePath → String?
-
Set this if you want to run only a specific test file.
Path should be relative (e.g.
test/my_test.dart
)final - testName → String?
-
Set this if you want to run only a specific named test
testName could be a test name or a group name
final
- workingDirectory → String?
-
finalinherited
Methods
-
cancel(
) → void -
Manually cancel the task
inherited
-
execute(
) → Future< TestReport> -
The logic to execute the task.
Shouldn't be called directly but rather through run
inherited
-
handleResult(
ProcessResult result) → TestReport -
override
-
isErrorOfType(
Type type) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
{OnTaskEvent? onEvent}) → CancelableOperation< TestReport> -
Runs the task operation and returns the result
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited