inline_snapshot 1.0.2 inline_snapshot: ^1.0.2 copied to clipboard
Inline snapshot testing for Dart. Allows updating expected results based on actual results.
example/inline_snapshot_example.dart
import 'package:test/test.dart';
import 'package:inline_snapshot/inline_snapshot.dart';
void main() {
tearDownAll(() async {
await Expect.apply();
});
group('A group of tests', () {
test('First Test', () {
var e = Expect();
// ^replace "actual string" when run `UPDATE_EXPECT dart test`
e.eq("actual string");
});
});
}