8000 Add autoload for TestLanguage.psm1 TestHelpers.psm1 by iSazonov · Pull Request #3456 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 7 commits into from
May 17, 2017

Conversation

iSazonov
Copy link
Collaborator

The test temporary modules moved to test\tools\Modules.
I did two commits to simplify the review:

  1. Commit for Test.Helpers.psm1 (was renamed to TestHelpers.psm1)
  2. Commit for LanguageTestSupport.psm1 (was renamed to TestLanguage.psm1)

Copy link
Contributor
@lzybkr lzybkr left a 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. Maybe LanguageTestHelpers - and maybe TestHelpers should be CommonTestHelpers, or something like that.

@iSazonov
Copy link
Collaborator Author
iSazonov commented Apr 4, 2017

Can we add a "Module" suffix?

  • TestCommonHelpersModule
  • TestLanguageModule
  • TestHostCSModule
  • TestRemotingModule

@lzybkr
Copy link
Contributor
lzybkr commented Apr 4, 2017

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.

@iSazonov
Copy link
Collaborator Author
iSazonov commented Apr 4, 2017

I thought about how to easily find these modules using Get-Module. A common prefix can help instead of Test verb:

  • HelpersCommon
  • HelpersLanguage
  • HelpersHostCS
  • HelpersRemoting

@iSazonov iSazonov force-pushed the tests-auto-ipmo-3 branch 2 times, most recently from e040758 to a138e0d Compare April 5, 2017 04:43
@iSazonov
Copy link
Collaborator Author
iSazonov commented Apr 6, 2017

@lzybkr @TravisEz13 In last commit I renamed modules (Removed approved verbs (Get-Verb) from module names).
Please continue the review.

@iSazonov
Copy link
Collaborator Author

@lzybkr @TravisEz13 Do I need something else to do here?

@iSazonov iSazonov force-pushed the tests-auto-ipmo-3 branch from 5a3e8fd to e8d7619 Compare April 19, 2017 06:16
@iSazonov
Copy link
Collaborator Author

@lzybkr @TravisEz13 Could you please review and merge? This blocks further work.


FunctionsToExport = 'Wait-UntilTrue', 'Test-IsElevated', 'ShouldBeErrorId'

#CmdletsToExport = '*'
Copy link
Member

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 = '*'
Copy link
Member

Choose a reason for hiding this comment

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

can be removed

Copy link
Collaborator Author

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 = '*'
Copy link
Member

Choose a reason for hiding this comment

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

see previous comment

Copy link
Collaborator Author

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 = '*'
Copy link
Member

Choose a reason for hiding this comment

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

see previous comment

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Member
@TravisEz13 TravisEz13 left a 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.

@iSazonov
Copy link
Collaborator Author

@TravisEz13 Could you please continue with the PR?

@TravisEz13
Copy link
Member

@iSazonov Sorry, I've been out of the office for a few weeks.

@TravisEz13
Copy link
Member

Closed and re-opened PR to re-trigger CI. Could you rebase as well?

@iSazonov iSazonov force-pushed the tests-auto-ipmo-3 branch from eccc5c3 to 4c7b812 Compare May 11, 2017 05:10
@iSazonov
Copy link
Collaborator Author

Rebase done.

@iSazonov
Copy link
Collaborator Author

@TravisEz13 Is the PR ready to merge?

@TravisEz13 TravisEz13 merged commit e00161a into PowerShell:master May 17, 2017
@TravisEz13
Copy link
Member

Yeah @iSazonov, Thanks. I was giving people time to give feedback. Thanks for pinging me too.

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.

4 participants
0