Skip to content

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

6 commits merged into
PowerShell:masterfrom
adityapatwardhan:FixNullTests

Conversation

@adityapatwardhan

@adityapatwardhan Aditya Patwardhan (adityapatwardhan) commented Dec 17, 2019 •

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

@adityapatwardhan 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

@daxian-dbw 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.

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
Copy Markdown
Member Author

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

@adityapatwardhan

Copy link
Copy Markdown
Member Author

PoshChan-Bot (@PoshChan) please retry linux

@PoshChan

Copy link
Copy Markdown
Collaborator

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

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

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
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
@ghost

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-contribs/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.
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