-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: show derived configuration #517
Conversation
Saw a few nit picks. I might be able to refactor this patch to use fewer files, by naming the snapshots in the test cases. WIP. |
feat: print derived config variables feat: print derived config variables in json test: 12 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
b1bffb3
to
e1969b0
Compare
feat: print derived config variables feat: print derived config variables in json test: 12 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
e1969b0
to
a09fd9d
Compare
feat: print derived config variables feat: print derived config variables in json test: 12 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
a09fd9d
to
32dd6af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a useful addition to functionality to me, I would change the PR title to:
feat: show derived configuration
Thanks @bcoe. I will make the changes above and have a new commit in the next week. |
feat: print derived config variables feat: print derived config variables in json test: 12 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
feat: print derived config variables feat: print derived config variables in json test: 12 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
feat: print derived config variables feat: print derived config variables in json test: 16 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
32dd6af
to
b33e8e7
Compare
@bcoe, Please review again. |
console.log(jsonYargs) | ||
} | ||
|
||
// DO NOT REMOVE! This is intentional. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you expand on the comment to explain why this process.exit()
is necessary?
Why is this process.exit()
necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason for this process.exit()
is that it stops c8 from producing a coverage report after showing the configuration report. Additionally, this logic allows JSON to be also printed, and possibly consumed by another process.
@bcoe can you anticipate any use cases where a configuration report and coverage report are necessary?
/** | ||
* Function: runSpawn | ||
* | ||
* @param {String} cmd: A string representing the prompt command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like quite a bit of test helper logic being introduced for the size of the feature.
Could we get away with simply using a regex assertion and testing against some of the expected output?
@mcknasty it's mostly my fault for not being more engaged on this repo, but I think I need to declare bankruptcy on some of the inflight PRs. If you're still feeling passionate about some of these changes (some were pretty cool IMO, like printing derived configuration), mind reopening on at a time, with a tracking issue that describes the functionality you'd like to see. Thank you for the work you have done on this repo 👏 |
Thanks for your comments on these. Some of the PRs did need to get closed. Unfortunately, this one is a prerequisite for #518 at the moment. |
feat: print derived config variables feat: print derived config variables in json test: 16 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
feat: print derived config variables feat: print derived config variables in json test: 16 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
feat: print derived config variables feat: print derived config variables in json test: 16 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
feat: print derived config variables feat: print derived config variables in json test: 16 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
feat: print derived config variables feat: print derived config variables in json test: 16 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
feat: print derived config variables feat: print derived config variables in json test: 16 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
Pull Request 517
Commit Message
commit b33e8e7
Author: Trevor D McKeown [email protected]
Date: Sun Feb 18 09:17:58 2024 -0500
Following the Contributions Recommendations here.