mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
27 lines
495 B
Dart
27 lines
495 B
Dart
import 'package:darttest/main.dart';
|
|
import 'package:test/test.dart';
|
|
import 'dart:io';
|
|
|
|
void main() {
|
|
group('Test 1', () {
|
|
test('Passing test', () {
|
|
expect(1, equals(1));
|
|
});
|
|
|
|
group('Test 1.1', () {
|
|
test('Failing test', () {
|
|
expect(1, equals(2));
|
|
});
|
|
|
|
test('Exception in target unit', () {
|
|
throwError();
|
|
});
|
|
});
|
|
});
|
|
|
|
group('Test 2', () {
|
|
test('Exception in test', () {
|
|
throw Exception('Some error');
|
|
});
|
|
});
|
|
}
|