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 files param to TestRunner.test #246

Merged
merged 1 commit into from
May 20, 2015

Conversation

devoncarew
Copy link
Contributor

  • add a files param to TestRunner.test
  • publish a patch version

return _test.runAsync(_buildArgs(
files: files,
Copy link
Contributor

Choose a reason for hiding this comment

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

An optional positional parameter would be more consistent with the command-line test runner and with Dartfmt and Analyzer, but we'd have to wait until this DEP until we could actually make it optional. If we keep it named, maybe paths is more self-documenting that you can use a directory path and not just file paths?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally agree re: the optional positional parameter; would have preferred to have something like that available. I think the primary use-case will be files however; would prefer to keep it as is.

Copy link
Contributor

Choose a reason for hiding this comment

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

sgtm

devoncarew added a commit that referenced this pull request May 20, 2015
@devoncarew devoncarew merged commit 072bae4 into master May 20, 2015
@@ -305,7 +306,7 @@ class Analyzer {
List args = [];
if (packageRoot != null) args.add('--package-root=${packageRoot.path}');
if (fatalWarnings) args.add('--fatal-warnings');
args.addAll(_coerceToPathList(fileOrPaths));
args.addAll(coerceToPathList(fileOrPaths));
Copy link

Choose a reason for hiding this comment

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

It's a bit weird that here are fileOrPaths, files (line 320), fileOrPath (line 335) for the same kind of argument. Also the doc-comments are written differently.

@devoncarew devoncarew deleted the devoncarew_add_testrunner_param branch June 11, 2015 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants