TempDirFixture class

A Fixture used to create a temporary directory, which will be created on setup, and deleted on teardown.

Example

group('Some test', (){
  final tmpDir = fixtureForEach<TempDirFixture>(TempDirFixture())

  test('testing something', (){
    // ... use tmpDir.directory here ...
  });
});
Inheritance

Constructors

TempDirFixture()

Properties

directory Directory
The temporary directory (will be deleted after tests).
read / write
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

after() → void
Cleans out and deletes the temporary directory.
override
before() → void
Creates the temporary directory and exposes it as the directory property.
override
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