Repository navigation
Fix publish cmd - #38490
Fix publish cmd#38490
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. While there are exceptions to this rule, if this patch modifies code it is probably not an exception. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
@jonahwilliams I didn't add a test, as I looked at the existing ones and I'm really puzzled how those are passing. There was already a test that runs publish and looks at the output for a y/n. I wonder how that was passing? |
|
The tests in https://github.com/flutter/flutter/blob/master/packages/flutter_tools/test/general.shard/commands/packages_test.dart#L348 should already cover this, though they need to be adjusted. These inject a fake process manager which mocks the output/interaction of pub |
Codecov Report
@@ Coverage Diff @@
## master #38490 +/- ##
==========================================
- Coverage 55.91% 55.5% -0.42%
==========================================
Files 194 194
Lines 18186 18200 +14
==========================================
- Hits 10169 10101 -68
- Misses 8017 8099 +82
Continue to review full report at Codecov.
|
Co-Authored-By: Jonah Williams <[email protected]>
Fixes #33302
Fixes #38485
Core issues found that this fixes:
.rest. but not flags, so need to define those explicitly