Skip to content

Test steward task

Run StrideAITestPlan@0 on a schedule or after each release build and it keeps one test plan for the project, organised the way a business signs off: a suite per layer (E2E business logic for business and QA, API and integration for developers, regression; or your own layers) and, under each, a suite per feature.

For every story delivered since the last run it reads the acceptance criteria, writes the missing test cases for each layer with your model, links them to the story, files them in the right suite, and tags them needs-review. The report shows coverage by layer and a sign-off table per feature, and lists the questions for the product owner where criteria are missing. Without a model it still keeps the structure and the coverage report.

- task: StrideAITestPlan@0
inputs:
planName: Shop Test Pool
layers: E2E Business Logic | API and Integration | Regression
wikiPath: QA/Test pool
provider: azure
endpoint: https://contoso.openai.azure.com
model: gpt-4.1
apiKey: $(StrideAIKey)

The QA Quality tab reviews the cases it writes, and Pipeline quality shows its history.

Input Default Meaning
planName StrideAI Test Pool Created when it does not exist.
layers E2E Business Logic | API and Integration | Regression Each layer becomes a suite under the plan; under it, a suite per feature. The three defaults carry built-in guidance for the model.
createCases true Write test cases for items that have none in a layer.
workItemTypes User Story, Product Backlog Item, Requirement, Bug Types that count.
states Active, Resolved, Closed, Done, Committed States that count as delivered or in delivery.
areaPath Limit to an area.
since Last successful run A date such as 2026-11-01; on the first run, the last windowDays.
windowDays 14 Days to look back on the first run.
maxItems 20 Most items per run.
failOn never Fail the run when: never, itemsWithoutTests, itemsWithoutCriteria.
title, outputFile, wikiPath Report title, Markdown file, wiki page (needs Contribute on the wiki).
provider, endpoint, model, apiKey, apiVersion Shared model inputs.

Outputs: CasesCreated, ItemsWithoutTests, ItemsWithoutCriteria.

Set qualityReports: true to also publish a quality report (a StrideAIQuality JSON artifact and a Markdown summary) after steward processing, or qualityOnly: true for a step that writes nothing at all: no plans, cases, suites, wiki pages or model calls.

Input Default Meaning
qualityOnly false Read only; never creates anything, runs tests, posts comments or calls a model.
qualityReports false Also publish the quality digest, flaky/regression evidence and review reminders.
qualityPipeline This pipeline Definition ID of the tested build pipeline to inspect.
qualityRuns 5 Completed runs to inspect (2–20).
qualityFail false Fail the run on a failed or unknown gate.
escapedBugTags Counts observed Bug work items with these tags; empty or over 500 matches stays unknown.
roleServiceEndpoint, roleServiceKey Optional HTTPS role feature service and its secret key. A configured service is authoritative and never falls back to free. The Azure DevOps job token is never forwarded.

Outputs: QualityGate (passed, failed, unknown), NeedsReview, FlakyCandidates.

A gate passes only with a non-empty snapshot no older than 48 hours, a known change window, complete published outcome samples, and no coverage gaps, review backlog, failures or flaky candidates. Missing results, continuation pages, truncation or stale evidence cannot pass. The task does not execute tests, certify that every case ran, generate executable test code, or post reminders to work items.