-
Notifications
You must be signed in to change notification settings - Fork 0
Fix test matching when referenced with and without file filters #77
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
Fix test matching when referenced with and without file filters #77
Conversation
- Add regression test TraceMatrix_WithMixedFilterAndPlainReferences_MatchesBoth - Fix FindAllMatchingTestNames to match both source-specific AND plain test names - Test now correctly handles scenario where test is referenced with and without file-filter Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
|
This PR fixes issue #78 |
|
@copilot Should the new test be linked to any requirements in the requirements.yaml file? |
Link the new test TraceMatrix_WithMixedFilterAndPlainReferences_MatchesBoth to requirement TEST-010, which validates that a test can satisfy multiple requirements when referenced with and without file filters. Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
|
@copilot Quality checks broken again - please run all quality checks - the following is one that got broken but there may be more: |
Changed title from "The tool shall allow a test to satisfy multiple requirements when referenced with and without file filters." (128 chars) to "The tool shall match tests to multiple requirements with mixed filter references." (102 chars) Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Fixed the yamllint error by shortening the TEST-010 title from 128 to 102 characters. All quality checks now pass (yamllint, build, and tests). Commit: 393ca0f |
Fix test matching when referenced with and without file filters
Related Issue
Fixes #78
When a test is referenced in multiple requirements—some with file filters (
filepart@testname) and some without—the plain name reference fails to match if the filtered reference matches first.Changes
Modified
TraceMatrix.FindAllMatchingTestNames(): Removed early-exit logic that prevented matching plain test names when source-specific names matched. Now iterates through all required tests and matches both formats.Added regression test:
TraceMatrix_WithMixedFilterAndPlainReferences_MatchesBothvalidates that a single test result satisfies both filtered and unfiltered requirement references.Added requirement TEST-010: Linked the new test to
requirements.yamlto document the expected behavior that a test can satisfy multiple requirements when referenced with and without file filters.Example
Previously, when
test-results-windows-latest.trxcontainingTest_SharedTestwas processed, only REQ-001 was satisfied. Now both requirements are correctly satisfied.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.