8000 Add Tests to Language by bingbing8 · Pull Request #2043 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Add Tests to Language #2043

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

Closed
wants to merge 4 commits into from
Closed

Add Tests to Language #2043

wants to merge 4 commits into from

Conversation

bingbing8
Copy link
Contributor
@bingbing8 bingbing8 commented Aug 23, 2016

Add Tests to Language feature.

@msftclas
Copy link

Hi @bingbing8, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Yanbing Wang). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@TravisEz13
Copy link
Member

@JamesWTruher Can you review this PR?

@JamesWTruher
Copy link
Collaborator
JamesWTruher commented Aug 24, 2016

the files run by Pester must end with Tests.ps1 - none of the tests are actually being run.

$err = $null
try
{
dir nosuchfile.nosuchextension -ea stop -ev err
Copy link
Collaborator

Choose a reason for hiding this comment

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

dir [](start = 16, length = 3)

get-childitem please

Copy link
8000
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm going to be pedantic but -ea & -ev should be expanded here as well

@JamesWTruher
Copy link
Collaborator

🕐


It 'Check basic expressions' {

{2+2}.CheckRestrictedLanguage($null, $null, $false) # Succeed with no variables
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there supposed to be a should statement here?
{ {2+2}.CheckRestrictedLanguage($null, $null, $false)} | Should Not Throw

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated all tests.

@JamesWTruher
Copy link
Collaborator

this is a pretty big PR, is there any way to break it up?

@vors vors closed this Aug 24, 2016
@vors vors reopened this Aug 24, 2016
@msftclas
Copy link

Hi @bingbing8, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Yanbing Wang). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@vors
Copy link
Collaborator
vors commented Aug 24, 2016

I closed and re-opened PR to retrigger Travis CI webhook (build payload was not delivered last time).

I seen this behavior quite a few times. @PowerShell/powershell-maintainers any ideas why it happening? Should we include something about such cases in our maintainers docs?

@bingbing8
Copy link
Contributor Author

I will close the request and split it to multiple for easy review.

7611
@bingbing8 bingbing8 closed this Aug 26, 2016
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.

7 participants
0