microsoft / microsoft/vscode-powerquery-sdk
Don't Output Full Source of Test Script's Expression
Open
@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
- I have installed the latest version of Power Query SDK.
- I have checked existing resources, including the common issues and the release notes.
- I have searched for similar issues.
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.