{"action":"closed","issue":{"url":"https://api.github.com/repos/Dart-Code/Dart-Code/issues/1156","repository_url":"https://api.github.com/repos/Dart-Code/Dart-Code","labels_url":"https://api.github.com/repos/Dart-Code/Dart-Code/issues/1156/labels{/name}","comments_url":"https://api.github.com/repos/Dart-Code/Dart-Code/issues/1156/comments","events_url":"https://api.github.com/repos/Dart-Code/Dart-Code/issues/1156/events","html_url":"https://github.com/Dart-Code/Dart-Code/issues/1156","id":351427974,"node_id":"MDU6SXNzdWUzNTE0Mjc5NzQ=","number":1156,"title":"Default directory for running tests is not the root directory","user":{"login":"liboz","id":13482895,"node_id":"MDQ6VXNlcjEzNDgyODk1","avatar_url":"https://avatars2.githubusercontent.com/u/13482895?v=4","gravatar_id":"","url":"https://api.github.com/users/liboz","html_url":"https://github.com/liboz","followers_url":"https://api.github.com/users/liboz/followers","following_url":"https://api.github.com/users/liboz/following{/other_user}","gists_url":"https://api.github.com/users/liboz/gists{/gist_id}","starred_url":"https://api.github.com/users/liboz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liboz/subscriptions","organizations_url":"https://api.github.com/users/liboz/orgs","repos_url":"https://api.github.com/users/liboz/repos","events_url":"https://api.github.com/users/liboz/events{/privacy}","received_events_url":"https://api.github.com/users/liboz/received_events","type":"User","site_admin":false},"labels":[{"id":633293711,"node_id":"MDU6TGFiZWw2MzMyOTM3MTE=","url":"https://api.github.com/repos/Dart-Code/Dart-Code/labels/in%20flutter","name":"in flutter","color":"0e8a16","default":false},{"id":858116579,"node_id":"MDU6TGFiZWw4NTgxMTY1Nzk=","url":"https://api.github.com/repos/Dart-Code/Dart-Code/labels/in%20testing","name":"in testing","color":"0e8a16","default":false},{"id":416693368,"node_id":"MDU6TGFiZWw0MTY2OTMzNjg=","url":"https://api.github.com/repos/Dart-Code/Dart-Code/labels/is%20bug","name":"is bug","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Dart-Code/Dart-Code/milestones/74","html_url":"https://github.com/Dart-Code/Dart-Code/milestone/74","labels_url":"https://api.github.com/repos/Dart-Code/Dart-Code/milestones/74/labels","id":3531350,"node_id":"MDk6TWlsZXN0b25lMzUzMTM1MA==","number":74,"title":"v2.18.0","description":"","creator":{"login":"DanTup","id":1078012,"node_id":"MDQ6VXNlcjEwNzgwMTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1078012?v=4","gravatar_id":"","url":"https://api.github.com/users/DanTup","html_url":"https://github.com/DanTup","followers_url":"https://api.github.com/users/DanTup/followers","following_url":"https://api.github.com/users/DanTup/following{/other_user}","gists_url":"https://api.github.com/users/DanTup/gists{/gist_id}","starred_url":"https://api.github.com/users/DanTup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanTup/subscriptions","organizations_url":"https://api.github.com/users/DanTup/orgs","repos_url":"https://api.github.com/users/DanTup/repos","events_url":"https://api.github.com/users/DanTup/events{/privacy}","received_events_url":"https://api.github.com/users/DanTup/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":7,"state":"open","created_at":"2018-07-30T07:49:32Z","updated_at":"2018-08-22T10:34:06Z","due_on":"2018-08-31T07:00:00Z","closed_at":null},"comments":2,"created_at":"2018-08-17T01:42:28Z","updated_at":"2018-08-22T10:34:06Z","closed_at":"2018-08-22T10:34:06Z","author_association":"NONE","body":"Currently, when running `flutter test`, one has to run it in the root directory of a Flutter project, but the working directory when running the test is the directory of the test file. When running tests through Dart-Code via the GUI interface in the code/Running tests inside VS Code in general, the working directory is instead the root directory.\r\n\r\nRepro Steps: \r\n1. Create a new Flutter project called `testing` in VS Code via the command palette.\r\n2. In the default `widget_test.dart` file created, import `dart:io`  and add the following print statement inside the default test `print(Directory.current);`\r\n3. Run the test inside VS Code either through the circled `Run` button \r\n![code_2018-08-16_21-36-35](https://user-images.githubusercontent.com/13482895/44243374-c82a8500-a19c-11e8-90fc-d4c7fd1bf6f8.png) or from the panel on the left.\r\n4. The output in the Debug Console is `testing`.\r\n5. Running `flutter test` through the flutter console manually in the root directory results in the output being `testing/test`\r\n\r\nIs there a reason for this difference in behavior?"}}
{"actor":{"display_login":"DanTup"}}