Add OutputType attribute to various commands - #16962
Conversation
I'd prefer to have such tests. Perhaps it would be better to add tests for existent annotations and only then continue with the PR. Not related for the PR: perhaps you could have an interest to grab https://github.com/iSazonov/PowerShell/tree/outputtype-parameterset-inference |
|
I don't think any other commands include tests for the different attributes and parameter attributes they have so it seems like overkill to me. If you insist on them getting added, I still need to know how to write those tests, I don't know how to properly test for attributes. I mean I could use tabexpansion2 to test for completions but surely there's a better way?
I have thought about that feature but I suspect it's going to be a lot of work and if I was going to work on another big feature in the near future I would aim for something more important to me like pseudobinding for splatting hashtables. For now I think I'll take a bit of a break from new big PRs so mine and the other 90+ open PRs can actually get merged without too many merge conflicts.
|
I can not insist :-) I say ideally if we have a code the code must be fully covered by tests.
I stopped the work because of the same reason - no code reviewers. But if you will grab my code (it is small) in near future I can review (and merge if we will have great tests). |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
🎉 Handy links: |
PR Summary
Fixes #15905
Adds the OutputType attribute with a fitting type to the following commands:
I assume I don't need tests for adding this attribute, if that assumption is wrong then please tell me how you would like to see those tests.
PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).