[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a simple convenience test task runner for VSCode #15417

Merged
merged 1 commit into from
Mar 12, 2018

Conversation

xster
Copy link
Member
@xster xster commented Mar 11, 2018

No description provided.

@xster xster requested a review from DanTup March 11, 2018 23:38

if [[ "$1" == packages/flutter/test/* ]]; then
cd packages/flutter
../../bin/flutter test ../../$1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these paths correct? Seems strange that one starts with bin but the other ../../bin when they both refer to the same bin folder? (I'm on Windows so can't test atm...)

I could try making a Windows version of the script, but, I think when we do Dart-Code/Dart-Code#499 this might all get much simpler (needs a little investigation) and won't require maintaining a shell script like that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the flutter execution needs to be run in the directory with the pubspec.yaml.

the dart executable can just be run from the flutter repo root.

Mostly just a convenience script for us for now. Dart-Code/Dart-Code#499 is definitely a superior solution.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, I missed the cd on the line before... Monday morning!

LGTM then! If I end up working in here from Windows before Dart-Code/Dart-Code#499 I might create a Windows .bat equiv, but I hope the tasks isn't too far off!

@xster xster merged commit c8fd99f into flutter:master Mar 12, 2018
@xster xster deleted the vscode-test branch March 12, 2018 08:05
@Hixie
Copy link
Contributor
Hixie commented Mar 16, 2018

I don't think we should add this file to the repo. It's IDE-specific. This means it won't be tested, it'll get out of sync, it's an additional maintenance burden on everyone who doesn't use that IDE, etc. We should be going the other direction instead, removing IDE-specific files and having the IDEs use a common file to configure themselves.

@DanTup
Copy link
Contributor
DanTup commented Mar 16, 2018

Seems valid. In the future Dart Code should be able to help run tests without any/much config, but it's not there yet (flutter test support is in progress, though blocked a little on some VS Code issues right now).

xster added a commit to xster/flutter that referenced this pull request Mar 19, 2018
xster added a commit that referenced this pull request Mar 19, 2018
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants