-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add autoload for TestLanguage.psm1 TestHelpers.psm1 #3456
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
Conversation
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.
2 small comments
- you can delete most of the comments from the module manifest, they aren't useful
- can you think of a better name for the module
TestLanguage
- it feels too similar to a hypothetical script or cmdlet. MaybeLanguageTestHelpers
- and maybeTestHelpers
should beCommonTestHelpers
, or something like that.
Can we add a "Module" suffix?
|
Mostly I'm just thinking out loud here, it just struct me as odd seeing verbs in module names. I was curious how common this was, and it's not uncommon: $verbs = (Get-Verb).Verb
Find-Module | ? { $modName = $_.Name; $verbs | ? { $modName.StartsWith($_) } } This gives my 97 modules, some of which sound more like scripts than modules, but it's hard to see without looking more closely. At any rate, consider this just one opinion, nothing more. |
I thought about how to easily find these modules using
|
e040758
to
a138e0d
Compare
@lzybkr @TravisEz13 In last commit I renamed modules (Removed approved verbs (Get-Verb) from module names). |
@lzybkr @TravisEz13 Do I need something else to do here? |
5a3e8fd
to
e8d7619
Compare
@lzybkr @TravisEz13 Could you please review and merge? This blocks further work. |
|
||
FunctionsToExport = 'Wait-UntilTrue', 'Test-IsElevated', 'ShouldBeErrorId' | ||
|
||
#CmdletsToExport = '*' |
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.
There are still comments here
|
||
FunctionsToExport = 'New-TestHost' | ||
|
||
#CmdletsToExport = '*' |
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.
can be removed
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.
Fixed.
FunctionsToExport = 'Get-ParseResults', 'Get-RuntimeError', 'ShouldBeParseError', | ||
'Test-ErrorStmt', 'Test-Ast', 'Test-ErrorStmtForSwitchFlag' | ||
|
||
#CmdletsToExport = '*' |
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.
see previous comment
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.
Fixed.
|
||
FunctionsToExport = 'New-RemoteRunspace', 'New-RemoteSession' | ||
|
||
#CmdletsToExport = '*' |
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.
see previous comment
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.
Fixed.
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.
I don't see any major issues.
@TravisEz13 Could you please continue with the PR? |
@iSazonov Sorry, I've been out of the office for a few weeks. |
Closed and re-opened PR to re-trigger CI. Could you rebase as well? |
Test.Helpers.psm1 was renamed to TestHelpers.psm1
Remove approved verbs (Get-Verb) from module names.
eccc5c3
to
4c7b812
Compare
Rebase done. |
@TravisEz13 Is the PR ready to merge? |
Yeah @iSazonov, Thanks. I was giving people time to give feedback. Thanks for pinging me too. |
The test temporary modules moved to
test\tools\Modules
.I did two commits to simplify the review: