Disabled class final

Skips a test method, or every test of a class or Nested group. The test still shows in the output, as skipped, with reason.

@Test()
@Disabled('the payment sandbox is down')
Future<void> paysOnline() async => ...;

Spring (Java): JUnit's @Disabled.

Constructors

Disabled([String? reason])
Skips with reason, if given.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
reason → String?
Why the test is skipped, shown in the test output.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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