Skip to content

add test coverage for additional Get-Module parameters - #8137

Merged
Ilya (iSazonov) merged 4 commits into
PowerShell:masterfrom
loandepot-oss:kevinmarquette/get-module-test-coverage
Nov 7, 2018
Merged

Ilya (iSazonov) merged 4 commits into
PowerShell:masterfrom
loandepot-oss:kevinmarquette/get-module-test-coverage

Conversation

@KevinMarquette

@KevinMarquette Kevin Marquette (KevinMarquette) commented Oct 28, 2018 •

Copy link
Copy Markdown
Contributor

PR Summary

add test coverage for Get-Module parameters FullyQualifiedName ,PSEdition and Refresh

PR Checklist

@KevinMarquette Kevin Marquette (KevinMarquette) changed the title add test coverage for additional Get-Module parameters [WIP] add test coverage for additional Get-Module parameters Oct 28, 2018
@KevinMarquette
Kevin Marquette (KevinMarquette) force-pushed the kevinmarquette/get-module-test-coverage branch from 0712608 to 529264c Compare October 28, 2018 21:05
@KevinMarquette Kevin Marquette (KevinMarquette) changed the title [WIP] add test coverage for additional Get-Module parameters add test coverage for additional Get-Module parameters Oct 28, 2018

@rjmholt Rob Holt (rjmholt) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks like important coverage to me!

One thing that strikes me is the name of the file (which I know is pre-existing). The tests here all cover Get-Module -ListAvailable scenarios, where Get-Module scenarios are mostly covered in ModuleConstraint.Tests.ps1 and the CompatiblePSEditions checks are covered in CompatiblePSEditions.Tests.ps1 (different to the ones here, they don't filter by PSEdition explicitly but do the implicity manifest check for modules on the Windows PowerShell module path).

@iSazonov

Copy link
Copy Markdown
Collaborator

Kevin Marquette (@KevinMarquette) Please address Rob Holt (@rjmholt) feedback about file names.

@rjmholt

Copy link
Copy Markdown
Collaborator

Oh sorry, my feedback isn't terribly clear.

I would support changing the file name to something like Get-Module-ListAvailable.Tests.ps1 (theoretically, maybe it should be ListAvailable.Get-Module.Tests.ps1...?). Point is that Get-Module is tested in a whole bunch of places, and discoverability is a problem for our tests.

@iSazonov

Copy link
Copy Markdown
Collaborator

Aditya Patwardhan (@adityapatwardhan) We need your help.

@SteveL-MSFT

Copy link
Copy Markdown
Member

For the organization of test cases to make them discoverable, I think it's out of scope for this PR and should be a separate PR.

@KevinMarquette
Kevin Marquette (KevinMarquette) force-pushed the kevinmarquette/get-module-test-coverage branch from 7f7add8 to 27fdb7b Compare November 3, 2018 18:50

@SteveL-MSFT Steve Lee (SteveL-MSFT) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@iSazonov Ilya (iSazonov) self-assigned this Nov 7, 2018
@iSazonov
Ilya (iSazonov) merged commit 75fa6af into PowerShell:master Nov 7, 2018
@iSazonov

Copy link
Copy Markdown
Collaborator

Kevin Marquette (@KevinMarquette) Thanks for your contribution!

@KevinMarquette
Kevin Marquette (KevinMarquette) deleted the kevinmarquette/get-module-test-coverage branch November 8, 2018 05:13
@iSazonov Ilya (iSazonov) added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Jan 17, 2019
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Test Indicates that a PR should be marked as a test change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants