code change · otherAL Developmentofficial - Microsoftreviewed - checked by Opus

#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 · 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).