---
id: change/bcquality/267
type: change
title: "#267 Evaluation: keep standalone BDD tag lines in prepared testing samples"
summary: The review-fixture evaluation harness now keeps standalone full-line BDD tag comments ([FEATURE], [SCENARIO], [GIVEN], [WHEN], [THEN]) when preparing samples, and still strips other full-line comments. Nineteen samples in ten selected testing articles received complete, neutral tags, and the preparation logic moved to Review-FixtureText.ps1.
tier: official
language: en
tags:
  - other
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-11-08T00:58:59.369Z"
  flags: []
generated:
  at: "2026-11-08T00:19:04.246Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 2971be34f1a81fc2dcbeb14c4e02fbcfe9c10188
evidence:
  - kind: code
    url: https://github.com/microsoft/BCQuality/pull/267
    title: "microsoft/BCQuality#267: Evaluation: keep standalone BDD tag lines in prepared testing samples"
    date: "2026-11-06"
    commit: 2971be34f1a81fc2dcbeb14c4e02fbcfe9c10188
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 267
repo: microsoft/BCQuality
source_id: bcquality-prs
url: https://github.com/microsoft/BCQuality/pull/267
kind: pr
base_branch: main
major: null
merged_at: "2026-11-06T11:16:31Z"
author: Nikolaj1407
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: other
behavior_change: true
breaking: false
files:
  count: 22
  additions: 352
  deletions: 31
  al: 18
apps: []
objects_touched: []
objects_unjoined:
  - path: microsoft/knowledge/testing/asserterror-needs-expectederror-and-code.bad.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/asserterror-needs-expectederror-and-code.good.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/commit-shared-test-fixture-inside-lazy-initialize.bad.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/commit-shared-test-fixture-inside-lazy-initialize.good.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/given-blocks-must-cover-full-precondition-chain.bad.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/given-blocks-must-cover-full-precondition-chain.good.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/reset-per-test-state-before-the-isinitialized-guard.bad.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/reset-per-test-state-before-the-isinitialized-guard.good.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/test-one-when-per-test.bad.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/test-one-when-per-test.good.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/transactionmodel-attribute-governs-test-transactions.bad.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/transactionmodel-attribute-governs-test-transactions.good.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/ui-handlers-in-tests.bad.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/ui-handlers-in-tests.good.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/ui-test-codeunit-naming.bad.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/ui-test-codeunit-naming.good.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/use-assert-isfalse-not-asserterror-for-boolean-checks.bad.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/use-assert-isfalse-not-asserterror-for-boolean-checks.good.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - development
quote: null
joined_against:
  major: null
  commit: null
---

# #267 Evaluation: keep standalone BDD tag lines in prepared testing samples

> The review-fixture evaluation harness now keeps standalone full-line BDD tag comments ([FEATURE], [SCENARIO], [GIVEN], [WHEN], [THEN]) when preparing samples, and still strips other full-line comments. Nineteen samples in ten selected testing articles received complete, neutral tags, and the preparation logic moved to Review-FixtureText.ps1.

[Pull request](https://github.com/microsoft/BCQuality/pull/267) · merged into `main` on 2026-11-06 by Nikolaj1407 · 22 files (+352 -31), 18 AL · other · tier official · reviewed (checked by Opus)

## What changed

- The comment-stripping regex keeps full-line comments that start with one of five uppercase BDD tags; other full-line comments are still stripped
- Validation fails when a retained tag line contains Good, Bad or anti-pattern, and reports file:line
- 19 samples in ten selected testing articles were tagged neutrally and consistently across each bad/good pair
- Preparation text logic moved to tools/Review-FixtureText.ps1, used by the harness and its regression check
- Scorer, oracle, keepComments, neutralization and manifest are unchanged
- Behaviour changes for users or extensions.

## AL objects touched

- `microsoft/knowledge/testing/asserterror-needs-expectederror-and-code.bad.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/asserterror-needs-expectederror-and-code.good.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/commit-shared-test-fixture-inside-lazy-initialize.bad.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/commit-shared-test-fixture-inside-lazy-initialize.good.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/given-blocks-must-cover-full-precondition-chain.bad.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/given-blocks-must-cover-full-precondition-chain.good.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/reset-per-test-state-before-the-isinitialized-guard.bad.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/reset-per-test-state-before-the-isinitialized-guard.good.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/test-one-when-per-test.bad.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/test-one-when-per-test.good.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/transactionmodel-attribute-governs-test-transactions.bad.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/transactionmodel-attribute-governs-test-transactions.good.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/ui-handlers-in-tests.bad.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/ui-handlers-in-tests.good.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/ui-test-codeunit-naming.bad.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/ui-test-codeunit-naming.good.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/use-assert-isfalse-not-asserterror-for-boolean-checks.bad.al`: modified, not in the BC? snapshot
- `microsoft/knowledge/testing/use-assert-isfalse-not-asserterror-for-boolean-checks.good.al`: modified, not in the BC? snapshot

## Context

- Systems: development

Source: metadata of a merged pull request in microsoft/BCQuality (bcquality): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
