platform/angel_orm_postgres/test/all_test.dart
2019-10-09 10:36:55 -04:00

30 lines
1.1 KiB
Dart

import 'package:angel_orm_test/angel_orm_test.dart';
import 'package:logging/logging.dart';
import 'package:pretty_logging/pretty_logging.dart';
import 'package:test/test.dart';
import 'common.dart';
void main() {
Logger.root
..level = Level.ALL
..onRecord.listen(prettyLog);
group('postgresql', () {
group('belongsTo',
() => belongsToTests(pg(['author', 'book']), close: closePg));
group(
'edgeCase',
() => edgeCaseTests(pg(['unorthodox', 'weird_join', 'song', 'numba']),
close: closePg));
group('enumAndNested',
() => enumAndNestedTests(pg(['has_car']), close: closePg));
group('hasMany', () => hasManyTests(pg(['tree', 'fruit']), close: closePg));
group('hasMap', () => hasMapTests(pg(['has_map']), close: closePg));
group('hasOne', () => hasOneTests(pg(['leg', 'foot']), close: closePg));
group(
'manyToMany',
() =>
manyToManyTests(pg(['user', 'role', 'user_role']), close: closePg));
group('standalone', () => standaloneTests(pg(['car']), close: closePg));
});
}