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

Make null member access tests as string to avoid parsing errors #11385

Merged
6 commits merged into from Dec 21, 2019

Conversation

adityapatwardhan
Copy link
Member

@adityapatwardhan adityapatwardhan commented Dec 17, 2019

PR Summary

Fixes #11354

PSNullConditionalOperators feature is disabled by default. Hence it causes parsing error when tests are run. This PR converts the tests into here strings and executes them if the feature is enabled.

PR Context

PR Checklist

@adityapatwardhan adityapatwardhan added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Dec 17, 2019
@adityapatwardhan adityapatwardhan added this to the GA-consider milestone Dec 17, 2019
Copy link
Member

@daxian-dbw daxian-dbw left a comment

Choose a reason for hiding this comment

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

Looks good. But are you going to make similar changes to the NullConditionalOperator tests in Parser.Tests.ps1 and the tabcompletion test file?

@adityapatwardhan
Copy link
Member Author

@daxian-dbw - Added Parsing tests in the PR.

@adityapatwardhan
Copy link
Member Author

@PoshChan please retry linux

@PoshChan
Copy link
Collaborator

@adityapatwardhan, successfully started retry of PowerShell-CI-Linux

@adityapatwardhan adityapatwardhan added the AutoMerge informs the bot to automerge the PR label Dec 20, 2019
@ghost
Copy link

ghost commented Dec 20, 2019

Hello @adityapatwardhan!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 2dbb571 into PowerShell:master Dec 21, 2019
@adityapatwardhan adityapatwardhan deleted the FixNullTests branch December 21, 2019 00:22
daxian-dbw pushed a commit that referenced this pull request Jan 10, 2020
* Make null member access tests as string to avoid parsing errors

* Add PSNullConditionalOperators feature to testmetadata.json

* Add Parsing tests to be skipped

* Add tabcompletion tests
@daxian-dbw daxian-dbw modified the milestones: GA-approved, 7.0.0-rc.2 Jan 11, 2020
@ghost
Copy link

ghost commented Jan 16, 2020

🎉v7.0.0-rc.2 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoMerge informs the bot to automerge the PR CL-Test Indicates that a PR should be marked as a test change in the Change Log
Projects
None yet
3 participants