Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docs/contributing/testing-validation.md
Comment thread
rezatnoMsirhC marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Testing and Validation
description: Comprehensive guide to testing infrastructure components and validating changes, covering testing strategies, validation procedures, and quality assurance practices
author: Edge AI Team
ms.date: 2025-06-06
ms.date: 2026-06-19
ms.topic: how-to
estimated_reading_time: 7
keywords:
Expand All @@ -27,6 +27,19 @@ To maintain code quality and the OSSF Best Practices Badge, we enforce the follo
1. **New Functionality**: All new major functionality requires corresponding automated tests.
2. **Bug Fixes**: Bug fixes require regression tests that verify the fix.

### Regression Test Tracking

Bug-fix pull requests should include a regression test unless the change is documentation-only, configuration-only, or cannot be covered by a stable automated test. A regression test should reproduce the failing behavior and pass only after the fix. It can be implemented as a unit, contract, integration, deployment, or component test using the framework listed below.

For tracking, bug-fix PRs should state whether a regression test is included in the validation notes. Maintainers can apply the `regression-test` label when the PR includes one. Bug-fix PRs should also have the `bug` label at merge time so the tracking queries return meaningful data. If a bug fix does not include a regression test, the PR should explain the exception so the gap can be reviewed.

To measure the OSSF target that at least 50% of bug fixes include regression tests, compare merged bug-fix PRs that have the label against all merged bug-fix PRs over the review window:

```text
is:pr is:merged repo:microsoft/edge-ai label:bug label:regression-test
is:pr is:merged repo:microsoft/edge-ai label:bug -label:regression-test
```

### Technology Requirements

| Technology | Framework | Minimum Requirement |
Expand Down
Loading