From db808be825e2bfca83bb7457a95017560dcfb80a Mon Sep 17 00:00:00 2001 From: Tobe O Date: Thu, 14 Feb 2019 13:36:53 -0500 Subject: [PATCH] angel_orm_test --- angel_orm_postgres/pubspec.yaml | 2 ++ angel_orm_postgres/test/all_test.dart | 6 ++++++ angel_orm_test/README.md | 0 angel_orm_test/lib/angel_orm_test.dart | 2 ++ angel_orm_test/lib/src/cases/cases.dart | 9 +++++++++ angel_orm_test/lib/src/cases/standalone.dart | 7 +++++++ angel_orm_test/lib/src/models/models.dart | 1 + angel_orm_test/pubspec.yaml | 4 ++++ 8 files changed, 31 insertions(+) create mode 100755 angel_orm_postgres/test/all_test.dart create mode 100755 angel_orm_test/README.md create mode 100755 angel_orm_test/lib/angel_orm_test.dart create mode 100755 angel_orm_test/lib/src/cases/cases.dart create mode 100755 angel_orm_test/lib/src/cases/standalone.dart create mode 100755 angel_orm_test/lib/src/models/models.dart diff --git a/angel_orm_postgres/pubspec.yaml b/angel_orm_postgres/pubspec.yaml index 1cc33a1e..ccb46177 100755 --- a/angel_orm_postgres/pubspec.yaml +++ b/angel_orm_postgres/pubspec.yaml @@ -11,4 +11,6 @@ dependencies: pool: ^1.0.0 postgres: ^1.0.0 dev_dependencies: + angel_orm_test: + path: ../angel_orm_test test: ^1.0.0 \ No newline at end of file diff --git a/angel_orm_postgres/test/all_test.dart b/angel_orm_postgres/test/all_test.dart new file mode 100755 index 00000000..dc14bd27 --- /dev/null +++ b/angel_orm_postgres/test/all_test.dart @@ -0,0 +1,6 @@ +import 'package:angel_orm_postgres/angel_orm_postgres.dart'; +import 'package:test/test.dart'; + +void main() { + +} \ No newline at end of file diff --git a/angel_orm_test/README.md b/angel_orm_test/README.md new file mode 100755 index 00000000..e69de29b diff --git a/angel_orm_test/lib/angel_orm_test.dart b/angel_orm_test/lib/angel_orm_test.dart new file mode 100755 index 00000000..a037aa44 --- /dev/null +++ b/angel_orm_test/lib/angel_orm_test.dart @@ -0,0 +1,2 @@ +export 'src/cases/cases.dart'; +export 'src/models/models.dart'; \ No newline at end of file diff --git a/angel_orm_test/lib/src/cases/cases.dart b/angel_orm_test/lib/src/cases/cases.dart new file mode 100755 index 00000000..cd50020e --- /dev/null +++ b/angel_orm_test/lib/src/cases/cases.dart @@ -0,0 +1,9 @@ +import 'package:angel_orm/angel_orm.dart'; +import 'package:test/test.dart'; +import 'standalone.dart'; + +void Function() ormTests(QueryExecutor executor) { + return () { + group('standalone', standaloneTests(executor)); + }; +} \ No newline at end of file diff --git a/angel_orm_test/lib/src/cases/standalone.dart b/angel_orm_test/lib/src/cases/standalone.dart new file mode 100755 index 00000000..f81c1cbd --- /dev/null +++ b/angel_orm_test/lib/src/cases/standalone.dart @@ -0,0 +1,7 @@ +import 'package:angel_orm/angel_orm.dart'; +import 'package:angel_orm_test/angel_orm_test.dart'; +import 'package:test/test.dart'; + +void Function() standaloneTests(QueryExecutor executor) { + return () {}; +} diff --git a/angel_orm_test/lib/src/models/models.dart b/angel_orm_test/lib/src/models/models.dart new file mode 100755 index 00000000..7c8cc749 --- /dev/null +++ b/angel_orm_test/lib/src/models/models.dart @@ -0,0 +1 @@ +export 'todo.dart'; \ No newline at end of file diff --git a/angel_orm_test/pubspec.yaml b/angel_orm_test/pubspec.yaml index 46c8f73b..d6a9f1a8 100755 --- a/angel_orm_test/pubspec.yaml +++ b/angel_orm_test/pubspec.yaml @@ -1,8 +1,12 @@ name: angel_orm_test publish_to: none +description: Common tests for Angel ORM backends.s +environment: + sdk: ">=2.0.0 <3.0.0" dependencies: angel_migration: ^2.0.0-alpha angel_model: ^1.0.0 + angel_orm: ^2.0.0-dev test: ^1.0.0 dev_dependencies: angel_orm_generator: