OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library gcloud.test.db_all_test; |
| 6 |
| 7 import 'dart:async'; |
| 8 |
| 9 import 'package:gcloud/db.dart' as db; |
| 10 import 'package:gcloud/src/datastore_impl.dart' as datastore_impl; |
| 11 import 'package:unittest/unittest.dart'; |
| 12 |
| 13 import 'db/e2e/db_test_impl.dart' as db_test; |
| 14 import 'db/e2e/metamodel_test_impl.dart' as db_metamodel_test; |
| 15 import 'datastore/e2e/datastore_test_impl.dart' as datastore_test; |
| 16 |
| 17 |
| 18 import 'common_e2e.dart'; |
| 19 |
| 20 main() { |
| 21 var scopes = datastore_impl.DatastoreImpl.SCOPES; |
| 22 |
| 23 withAuthClient(scopes, (String project, httpClient) { |
| 24 var datastore = new datastore_impl.DatastoreImpl(httpClient, 's~$project'); |
| 25 var datastoreDB = new db.DatastoreDB(datastore); |
| 26 |
| 27 return datastore_test.cleanupDB(datastore).then((_) { |
| 28 return runE2EUnittest(() { |
| 29 datastore_test.runTests(datastore); |
| 30 |
| 31 test('sleep-between-test-suites', () { |
| 32 expect(new Future.delayed(const Duration(seconds: 10)), completes); |
| 33 }); |
| 34 |
| 35 db_test.runTests(datastoreDB); |
| 36 |
| 37 test('sleep-between-test-suites', () { |
| 38 expect(new Future.delayed(const Duration(seconds: 10)), completes); |
| 39 }); |
| 40 |
| 41 db_metamodel_test.runTests(datastore, datastoreDB); |
| 42 }); |
| 43 }); |
| 44 }); |
| 45 } |
OLD | NEW |