-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[tool] Check for test and flutter_test in non-dev dependencies
#6472
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
Changes from 3 commits
b688139
e0b43af
1b1add3
50ab5a4
98de7d9
e273743
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ name: css_colors | |
| description: Defines constant dart:ui Color objects for CSS colors (for use in Flutter code). | ||
| repository: https://github.com/flutter/packages/tree/main/packages/css_colors | ||
| issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+css_colors%22 | ||
| version: 1.1.4 | ||
| version: 1.1.4+1 | ||
|
||
|
|
||
| environment: | ||
| sdk: ^3.1.0 | ||
|
|
@@ -11,6 +11,8 @@ environment: | |
| dependencies: | ||
| flutter: | ||
| sdk: flutter | ||
|
|
||
| dev_dependencies: | ||
| flutter_test: | ||
| sdk: flutter | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| ## 1.2.1+1 | ||
|
||
|
|
||
| * Moves flutter_test and test dependencies to dev_dependencies. | ||
|
|
||
| ## 1.2.1 | ||
|
|
||
| * Removes a few deprecated API usages. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1743,7 +1743,11 @@ ${_topicsSection()} | |
| package.pubspecFile.writeAsStringSync(''' | ||
| ${_headerSection('a_package')} | ||
| ${_environmentSection()} | ||
| ${_dependenciesSection(<String>['integration_test: \n sdk: flutter'])} | ||
| ${_dependenciesSection(<String>[ | ||
| 'integration_test: \n sdk: flutter', | ||
| 'flutter_test: \n sdk: flutter', | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the existing tests are going to change to test more things, then the test descriptions need to change accordingly.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated test name to 'fails when integration_test, flutter_test or test are used in non dev dependency' |
||
| 'test: 1.0.0' | ||
| ])} | ||
| ${_devDependenciesSection()} | ||
| ${_topicsSection()} | ||
| '''); | ||
|
|
@@ -1761,7 +1765,9 @@ ${_topicsSection()} | |
| containsAllInOrder(<Matcher>[ | ||
| contains( | ||
| 'The following unexpected non-local dependencies were found:\n' | ||
| ' test\n' | ||
| ' integration_test\n' | ||
| ' flutter_test\n' | ||
| 'Please see https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#Dependencies ' | ||
| 'for more information and next steps.'), | ||
| ]), | ||
|
|
@@ -1776,7 +1782,10 @@ ${_topicsSection()} | |
| package.pubspecFile.writeAsStringSync(''' | ||
| ${_headerSection('a_package', publishable: false)} | ||
| ${_environmentSection()} | ||
| ${_dependenciesSection(<String>['integration_test: \n sdk: flutter'])} | ||
| ${_dependenciesSection(<String>[ | ||
| 'integration_test: \n sdk: flutter', | ||
| 'flutter_test: \n sdk: flutter' | ||
| ])} | ||
| ${_devDependenciesSection()} | ||
| ${_topicsSection()} | ||
| '''); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a version change, which is why CI is failing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated