microsoft / microsoft/vscode-powerquery-sdk

Don't Output Full Source of Test Script's Expression

Open
#289 0 comments 0 reactions 1 assignee View on GitHub

@mattmasson is already working on this.

Since Jan 25, 2024.

sdk tools
Dominant language
TypeScript
Stars
92
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Preflight Checklist
Problem

When a test script containing an expression (vs. a section document) is evaluated, the entire expression's source code is output. For a long test script, this can add a bit of clutter to the output window.

Example

 Test script:

"abc"

Output (only selected properties shown):

[3:51:40 PM]	[Info]	RunTestBattery result [
    {
        "Details": "\"abc\"", <------------ full source code output here
        "Method": "PQTest.RunTest",
        "Type": "PQTest.Expression"
    }
]
Desired Solution

Can the full source code not be echoed out?

Alternatives and Workarounds

No response

Additional Context

In contrast, full source code is not output when the test script contains a section document:

Test script:

section Test;
shared A = "abc";

Output (only selected properties shown):

[3:52:03 PM]	[Info]	RunTestBattery result [
    {
        "Details": "A", <---------------- just the section member name is output
        "Method": "A",
        "Type": "PQTest.RunTest"
    }
]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.