Betamax class

Responsible for configuring the recording/playback system, and vends out HTTP clients tied to a specific test's lifecycle.

Constructors

Betamax()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Properties

cassetteFs CassetteFs
Responsible for reading and writing Cassettes (HTTP fixtures).
getter/setter pair
cassettePath String?
getter/setter pair
isConfigured bool
no setter
mode Mode?
getter/setter pair
suiteName String?
getter/setter pair

Static Methods

cassettePathFromTest(LiveTest liveTest) List<String>
clientForTest({bool setCassetteFromTestName = true}) → Client
Creates a new HTTP client, configured for playback or recording.
configureSuite({required String suiteName, required Mode mode, String relativeCassettePath = 'http_fixtures'}) → void
Configures Betamax for a test suite (generally a file).
setCassette(List<String> cassettePathParts) → void
Explicitly set the cassette used by the last client returned by clientForTest.