Add Self Validation section to README.md and User Guide#51
Add Self Validation section to README.md and User Guide#51Malcolmnixon merged 6 commits intomainfrom
Conversation
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
…tyle Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
|
@copilot Ah, I just realized the self-validation Context output (console and/or log) prints descriptions of the tests rather than the test name. It should really print the test names instead. Please update the Validation code to print just the test name (no need for description) and also update the README.md and user-guide documentation to match. |
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Done in 065a655 — |
Pull Request
Description
README.md lacked documentation on what
--validateactually does. Adds a Self Validation section to README.md and restructures the User Guide with a dedicated Self-Validation section, both formatted to match the SpdxTool documentation style. Also updatesValidation.csto print test names instead of friendly descriptions in the console/log output.Validation.cschanges:TemplateTool_VersionDisplay,TemplateTool_HelpDisplay) instead of friendly descriptions (Version Display Test,Help Display Test)✓ TemplateTool_VersionDisplay - PassedREADME.md changes:
TemplateTool_VersionDisplay—--versionoutputs a valid version stringTemplateTool_HelpDisplay—--helpoutputs usage and options informationdocs/guide/guide.md changes:
## Self-Validationsection with subsections matching the SpdxTool guide style:### Running Validation— commands to run validation and save results### Validation Report— description of report contents with an example code block showing actual output (using test names)### Validation Tests— bullet list with bold test names and one-line proof statementsType of Change
Related Issues
Pre-Submission Checklist
Before submitting this pull request, ensure you have completed the following:
Build and Test
dotnet build --configuration Releasedotnet test --configuration Releasedotnet run --project src/DemaConsulting.TemplateDotNetTool --configuration Release --framework net10.0--no-build -- --validateCode Quality
dotnet format --verify-no-changesQuality Checks
Please run the following checks before submitting:
cspell "**/*.{md,cs}"markdownlint "**/*.md"yamllint .Testing
Documentation
Additional Notes
Both README.md and the User Guide are formatted to mirror the SpdxTool documentation style. The validation output in
Validation.csnow uses actual test names (TemplateTool_VersionDisplay,TemplateTool_HelpDisplay) so the console/log output, README example, and user guide example all match the implementation exactly.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.