Skip to content

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

Development

Successfully merging this pull request may close these issues.

Null conditional operator tests should be re-written so they don't cause parsing errors when the experimental feature is disabled

3 participants