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

Rename TestCases parameter to ForEach #2311

Merged
merged 2 commits into from Jun 16, 2023
Merged

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Feb 27, 2023

PR Summary

Renames -TestCases parameter on It to -ForEach to follow documentation, and be consistent with Describe and Context.
Fixes the docs in inline help to use that name.

The former -TestCases name is made an alias.

$testCases in the examples is kept on purpose to make it easy to see what is being referred as array of hashtables.

Fix #2310

PR Checklist

  • PR has meaningful title
  • Summary describes changes
  • PR is ready to be merged
    • If not, use the arrow next to Create Pull Request to mark it as a draft. PR can be marked Ready for review when it's ready.
  • Tests are added/update (if required)
  • Documentation is updated/added (if required)

src/functions/It.ps1 Show resolved Hide resolved
@nohwnd nohwnd marked this pull request as ready for review June 16, 2023 09:50
@nohwnd nohwnd merged commit 4f05350 into main Jun 16, 2023
14 checks passed
@nohwnd nohwnd deleted the fix-foreach-and-testcases branch June 16, 2023 10:03
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.

It uses TestCases instead of ForEach
2 participants