FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make null member access tests as string to avoid parsing errors by adityapatwardhan · Pull Request #11385 · PowerShell/PowerShell · GitHub

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

Merged
6 commits merged into
PowerShell:masterfrom
adityapatwardhan:FixNullTests
Dec 21, 2019
Merged

Make null member access tests as string to avoid parsing errors#11385
6 commits merged into
PowerShell:masterfrom
adityapatwardhan:FixNullTests

Conversation

Aditya Patwardhan (adityapatwardhan) commented Dec 17, 2019
edited
Loading

Copy link
Copy Markdown
Member

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

Aditya Patwardhan (adityapatwardhan) added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Dec 17, 2019

Dongbo Wang (daxian-dbw) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Copy link
Copy Markdown
Member Author

Dongbo Wang (@daxian-dbw) - Added Parsing tests in the PR.

Copy link
Copy Markdown
Member Author

PoshChan-Bot (@PoshChan) please retry linux

Copy link
Copy Markdown
Collaborator

Aditya Patwardhan (@adityapatwardhan), successfully started retry of PowerShell-CI-Linux

Aditya Patwardhan (adityapatwardhan) added the AutoMerge informs the bot to automerge the PR label Dec 20, 2019

Copy link
Copy Markdown

Hello Aditya Patwardhan (@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 merged commit 2dbb571 into PowerShell:master Dec 21, 2019
Dongbo Wang (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

Copy link
Copy Markdown

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

Handy links:

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
…rShell#11385)

* 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
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL