Fix missing Demo-Validation requirement and align naming conventions for ReqStream CI#83
Merged
Malcolmnixon merged 3 commits intomainfrom Apr 7, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/demaconsulting/TemplateDotNetLibrary/sessions/37afcdf7-002e-496e-bbb7-64550ece1303 Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Malcolmnixon
April 7, 2026 01:35
View session
Malcolmnixon
requested changes
Apr 7, 2026
…ntions - Rename Demo-Greeting/Prefix/Validation to Template-Demo-Greeting/Prefix/Validation following the System-Section-ShortDesc pattern in reqstream-usage.md - Update children references in template-dot-net-library.yaml to match new IDs - Rename eight DemoTests.cs methods to the ClassName_Method_Scenario_ExpectedBehavior pattern required by csharp-testing.md - Sync tests: entries in demo.yaml to the new method names Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Copilot
AI
changed the title
Fix missing Demo-Validation requirement causing ReqStream CI failure
Fix missing Demo-Validation requirement and align naming conventions for ReqStream CI
Apr 7, 2026
Malcolmnixon
approved these changes
Apr 7, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a ReqStream CI failure by defining a previously missing child requirement and aligning requirement/test naming with documented conventions across the Template DotNet Library’s ReqStream artifacts and unit tests.
Changes:
- Add missing unit-level requirement
Template-Demo-Validationand rename Demo unit requirement IDs to theSystem-Section-ShortDescpattern. - Update system requirement
children:links to reference the renamed unit requirement IDs. - Rename Demo unit test methods to follow the
{ClassName}_{MethodUnderTest}_{Scenario}_{ExpectedBehavior}convention and update the Demo unit requirements’tests:links accordingly.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| test/TemplateDotNetLibrary.Tests/DemoTests.cs | Renames Demo unit test methods to match the required naming convention. |
| docs/reqstream/template-dot-net-library/template-dot-net-library.yaml | Updates system requirement children references to the new unit requirement IDs. |
| docs/reqstream/template-dot-net-library/demo.yaml | Renames unit requirement IDs and adds the missing validation requirement with updated test links. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…quirements.yaml Agent-Logs-Url: https://github.com/demaconsulting/TemplateDotNetLibrary/sessions/ccf8b8e8-6882-4ff3-972a-c912ba2e31c4 Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
Template-Lib-Validationintemplate-dot-net-library.yamldeclaredDemo-Validationas a child requirement, but that ID was never defined indemo.yaml. ReqStream enforces that all child references resolve to known IDs, causing the CI build to fail.Review feedback also identified that requirement IDs in
demo.yamlwere using a 2-part naming scheme (Demo-*) instead of the requiredSystem-Section-ShortDesc3-part pattern, and that unit test method names inDemoTests.cswere missing the{ClassName}prefix required by the{ClassName}_{MethodUnderTest}_{Scenario}_{ExpectedBehavior}convention. A subsequent review identified that the test name renames also required corresponding updates indocs/reqstream/ots/mstest.yamlanddocs/reqstream/template-dot-net-library/platform-requirements.yaml, which still referenced the old names.Changes:
docs/reqstream/template-dot-net-library/demo.yaml— adds the missingTemplate-Demo-Validationunit-level requirement covering null/empty rejection for bothDemoMethodand the custom-prefix constructor; renames all requirement IDs to the 3-partSystem-Section-ShortDescpattern:Demo-Greeting→Template-Demo-GreetingDemo-Prefix→Template-Demo-PrefixDemo-Validation→Template-Demo-Validationdocs/reqstream/template-dot-net-library/template-dot-net-library.yaml— updates allchildren:references to match the renamed IDs.test/TemplateDotNetLibrary.Tests/DemoTests.cs— renames eight unit test methods to include theDemoclass name prefix per the{ClassName}_{MethodUnderTest}_{Scenario}_{ExpectedBehavior}convention (e.g.DemoMethod_ThrowsArgumentNullException_ForNullInput→Demo_DemoMethod_NullInput_ThrowsArgumentNullException); all test bodies, comments, and XML-docs are unchanged.docs/reqstream/ots/mstest.yaml— updates all 9 test references to match the renamed test methods.docs/reqstream/template-dot-net-library/platform-requirements.yaml— updates all 7 source-filtered test references across platform and runtime requirements (e.g.windows@DemoMethod_ReturnsGreeting_WithDefaultPrefix→windows@Demo_DemoMethod_DefaultPrefix_ReturnsGreeting).Test references across all ReqStream YAML files are kept in sync with the renamed test methods.
Type 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 ReleaseCode Quality
dotnet format --verify-no-changesQuality Checks
Please run the following checks before submitting:
./lint.sh(Unix/macOS) orcmd /c lint.bat/./lint.bat(Windows)Testing
Documentation
Additional Notes
No production source code changes — all modifications are to requirements traceability YAML files and unit test method names only. All 15 tests pass across net8/9/10.