Skip to content

Commit cfb8609

Browse files
committed
adding tests for dart sdk
1 parent d1727d8 commit cfb8609

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/SDKTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ class SDKTest extends TestCase
3535
'build' => [
3636
'mkdir -p tests/sdks/dart/tests',
3737
'cp tests/languages/dart/tests.dart tests/sdks/dart/tests/tests.dart',
38-
'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=vendor appwrite/flutter:0.3.0 flutter pub get',
38+
'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=vendor google/dart:latest pub get',
3939
],
4040
'envs' => [
41-
'flutter' => 'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=vendor appwrite/flutter:0.3.0 flutter pub run tests/tests.dart',
42-
//'dart-2.6' => 'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=tests/sdks/dart/vendor google/dart:2.6 pub run test/tests.dart',
43-
//'dart-2.7' => 'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=tests/sdks/dart/vendor google/dart:2.7 pub run test/tests.dart',
44-
//'dart-2.8-dev' => 'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=tests/sdks/dart/vendor google/dart:2.8-dev pub run test/tests.dart',
41+
// 'dart-2.6' => 'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=vendor google/dart:2.6 pub run tests/tests.dart',
42+
'dart-2.7' => 'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=vendor google/dart:2.7 pub run tests/tests.dart',
43+
'dart-2.8' => 'docker run --rm --tty -it -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=vendor google/dart:2.8 pub run tests/tests.dart',
44+
'dart-2.10' => 'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=vendor google/dart:2.10 dart pub run tests/tests.dart',
4545
],
4646
],
4747

@@ -178,6 +178,7 @@ public function testHTTPSuccess()
178178
->setLogo('https://appwrite.io/v1/images/console.png')
179179
->setWarning('**WORK IN PROGRESS - THIS IS JUST A TEST SDK**')
180180
->setVersion('0.0.1')
181+
->setExamples('**EXAMPLES** <HTML>')
181182
->setNamespace("io appwrite")
182183
->setGitUserName('repoowner')
183184
->setGitRepoName('reponame')

0 commit comments

Comments
 (0)