From 3bc459c73a62a2d97511a035d6809408e8909590 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sat, 5 Sep 2020 12:41:54 +0200 Subject: [PATCH] CI: Print the working directory before running the tests The test data doesn't seem to be picked up. --- .circleci/config.yml | 3 +++ test/apis/github_test.dart | 1 + test/apis/gitlab_test.dart | 1 + 3 files changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 682ff076..fa94e9e3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,6 +11,9 @@ jobs: - run: name: SSH Problem command: echo 'Host *\n StrictHostKeyChecking no' > ~/.ssh/config + - run: + name: Current Directory + command: pwd - run: name: Test command: flutter test -j 1 --coverage --machine | tojunit --output junit.xml diff --git a/test/apis/github_test.dart b/test/apis/github_test.dart index b65de04d..f0388efd 100644 --- a/test/apis/github_test.dart +++ b/test/apis/github_test.dart @@ -8,6 +8,7 @@ import 'package:gitjournal/apis/github.dart'; void main() { test('Parse json', () async { + print("Current Dir: ${Directory.current}"); var jsonString = File('test/apis/data/github.json').readAsStringSync(); var api = GitHub(); diff --git a/test/apis/gitlab_test.dart b/test/apis/gitlab_test.dart index b2814ced..62817930 100644 --- a/test/apis/gitlab_test.dart +++ b/test/apis/gitlab_test.dart @@ -8,6 +8,7 @@ import 'package:gitjournal/apis/gitlab.dart'; void main() { test('Parse json', () async { + print("Current Dir: ${Directory.current}"); var jsonString = File('test/apis/data/gitlab.json').readAsStringSync(); var api = GitLab();