Skip to content

test: enhance filtering logic for runtime tests - #23074

Merged
morning4coffe-dev merged 1 commit into
masterfrom
dev/doti/datarow-runtimetests
May 9, 2026
Merged

morning4coffe-dev merged 1 commit into
masterfrom
dev/doti/datarow-runtimetests

Conversation

@morning4coffe-dev

Copy link
Copy Markdown
Member

GitHub Issue: closes #

PR Type:

  • 🐞 Bugfix
  • 🏗️ Build or CI related changes

What is the new behavior? 🚀

Improve search for e.g. "When_Add_Remove" DataRow tests.

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Copilot AI review requested due to automatic review settings April 17, 2026 18:59
@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Apr 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the SamplesApp runtime test runner’s filtering so that filters can match not only test method names/full names, but also individual data-driven test cases (e.g., DataRow parameters), improving discoverability and targeted execution.

Changes:

  • Refactored UnitTestsControl to filter on UnitTestMethodInfo (including per-case matching) and to execute only matching cases when appropriate.
  • Added filter-matching helpers to UnitTestMethodInfo (MatchesFilter, GetMatchingCases) to support case-level filtering.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UnitTest/UnitTestsControl.cs Switches filtering to operate on UnitTestMethodInfo and iterates only matching cases.
src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UnitTest/UnitTestMethodInfo.cs Introduces method/case filter matching helpers and full-name construction for filtering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@morning4coffe-dev
morning4coffe-dev merged commit ea75f7f into master May 9, 2026
46 checks passed
@morning4coffe-dev
morning4coffe-dev deleted the dev/doti/datarow-runtimetests branch May 9, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants