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: