bcquality/microsoft/knowledge/testing
Michael Dieringer 018e62767d
2 AL/BC patterns: TableRelation field length and RecordRef.Open Temp parameter (#208)
* Add TableRelation field-length and RecordRef.Open Temp knowledge

- data-modeling: tablerelation-field-length-must-match-related-field
  (exact length for unconditional relations, at least the longest target
  when all relations are conditional; no compile-time diagnostic)
- testing: recordref-open-temp-parameter-defeats-real-table-checks
  (a temp-opened RecordRef is empty, so existence/uniqueness checks on it
  never see persisted rows; cross-links use-generateguid article)
- Wire both into the review leaves and register the fixture pairs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Address review: TableRelation validation carve-out, RecordRef nits

- tablerelation: fields with ValidateTableRelation/TestTableRelation = false
  are skipped by codeunit 134926 and may be longer (filter/totaling
  fields); shorter is still a finding. Add Code/Text type rule, BaseApp
  evidence, a ValidateTableRelation = false filter field to the good
  fixture, and the carve-out to the data-modeling cue.
- recordref: add FindLast/Next, relabel SplitLocalTableFilter as filter
  splitting, mark fixtures as test-library-style helpers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Drop unverified claim about where-filtered relations

The Table Relations Metadata mapping of where(...) filters to
Condition Field No. is not documented and could not be verified; the
rule does not depend on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-10-06 13:30:37 +02:00
..
asserterror-needs-expectederror-and-code.bad.al Add testing knowledge: UI handlers, table relations, asserterror, fixtures (P1+P2) (#62) 2026-07-09 10:24:51 +02:00
asserterror-needs-expectederror-and-code.good.al Add testing knowledge: UI handlers, table relations, asserterror, fixtures (P1+P2) (#62) 2026-07-09 10:24:51 +02:00
asserterror-needs-expectederror-and-code.md 3 AL/BC testing patterns from an external BC testing expert's blog (Luc van Vugt, fluxxus.nl) (#159) 2026-09-29 17:13:06 +02:00
bcpt-scenarios-must-be-app-specific.bad.al 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
bcpt-scenarios-must-be-app-specific.good.al 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
bcpt-scenarios-must-be-app-specific.md 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
commit-shared-test-fixture-inside-lazy-initialize.bad.al 3 AL/BC testing patterns from an external BC testing expert's blog (Luc van Vugt, fluxxus.nl) (#159) 2026-09-29 17:13:06 +02:00
commit-shared-test-fixture-inside-lazy-initialize.good.al 3 AL/BC testing patterns from an external BC testing expert's blog (Luc van Vugt, fluxxus.nl) (#159) 2026-09-29 17:13:06 +02:00
commit-shared-test-fixture-inside-lazy-initialize.md 3 AL/BC testing patterns from an external BC testing expert's blog (Luc van Vugt, fluxxus.nl) (#159) 2026-09-29 17:13:06 +02:00
given-blocks-must-cover-full-precondition-chain.bad.al 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
given-blocks-must-cover-full-precondition-chain.good.al 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
given-blocks-must-cover-full-precondition-chain.md 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
permission-tests-must-lower-the-execution-context.bad.al Complete AL review knowledge readiness (#108) 2026-07-15 10:55:25 +02:00
permission-tests-must-lower-the-execution-context.good.al Complete AL review knowledge readiness (#108) 2026-07-15 10:55:25 +02:00
permission-tests-must-lower-the-execution-context.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
recordref-open-temp-parameter-defeats-real-table-checks.bad.al 2 AL/BC patterns: TableRelation field length and RecordRef.Open Temp parameter (#208) 2026-10-06 13:30:37 +02:00
recordref-open-temp-parameter-defeats-real-table-checks.good.al 2 AL/BC patterns: TableRelation field length and RecordRef.Open Temp parameter (#208) 2026-10-06 13:30:37 +02:00
recordref-open-temp-parameter-defeats-real-table-checks.md 2 AL/BC patterns: TableRelation field length and RecordRef.Open Temp parameter (#208) 2026-10-06 13:30:37 +02:00
reset-per-test-state-before-the-isinitialized-guard.bad.al Strengthen review contracts and add AL reliability guidance (#196) 2026-09-29 13:03:39 +02:00
reset-per-test-state-before-the-isinitialized-guard.good.al Strengthen review contracts and add AL reliability guidance (#196) 2026-09-29 13:03:39 +02:00
reset-per-test-state-before-the-isinitialized-guard.md Strengthen review contracts and add AL reliability guidance (#196) 2026-09-29 13:03:39 +02:00
table-relation-test-exclude-known-invalid-relations-via-event.bad.al 3 AL/BC testing patterns from an external BC testing expert's blog (Luc van Vugt, fluxxus.nl) (#159) 2026-09-29 17:13:06 +02:00
table-relation-test-exclude-known-invalid-relations-via-event.good.al 3 AL/BC testing patterns from an external BC testing expert's blog (Luc van Vugt, fluxxus.nl) (#159) 2026-09-29 17:13:06 +02:00
table-relation-test-exclude-known-invalid-relations-via-event.md 3 AL/BC testing patterns from an external BC testing expert's blog (Luc van Vugt, fluxxus.nl) (#159) 2026-09-29 17:13:06 +02:00
test-data-must-be-random-and-complete.bad.al 18 AL/BC patterns: style, data-modeling, web-services, appsource, breaking-changes, performance, testing (#156) 2026-09-29 12:48:17 +02:00
test-data-must-be-random-and-complete.good.al 18 AL/BC patterns: style, data-modeling, web-services, appsource, breaking-changes, performance, testing (#156) 2026-09-29 12:48:17 +02:00
test-data-must-be-random-and-complete.md 18 AL/BC patterns: style, data-modeling, web-services, appsource, breaking-changes, performance, testing (#156) 2026-09-29 12:48:17 +02:00
test-feature-scenario-tags.bad.al 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
test-feature-scenario-tags.good.al 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
test-feature-scenario-tags.md Restore deterministic review fixture coverage (#202) 2026-09-29 17:29:36 +02:00
test-one-when-per-test.bad.al 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
test-one-when-per-test.good.al 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
test-one-when-per-test.md 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
testisolation-belongs-on-the-test-runner.bad.al Complete AL review knowledge readiness (#108) 2026-07-15 10:55:25 +02:00
testisolation-belongs-on-the-test-runner.good.al Complete AL review knowledge readiness (#108) 2026-07-15 10:55:25 +02:00
testisolation-belongs-on-the-test-runner.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
transactionmodel-attribute-governs-test-transactions.bad.al Fix lifecycle compatibility guidance (#93) 2026-07-14 11:26:16 +02:00
transactionmodel-attribute-governs-test-transactions.good.al Fix lifecycle compatibility guidance (#93) 2026-07-14 11:26:16 +02:00
transactionmodel-attribute-governs-test-transactions.md 3 AL/BC testing patterns from an external BC testing expert's blog (Luc van Vugt, fluxxus.nl) (#159) 2026-09-29 17:13:06 +02:00
ui-handlers-in-tests.bad.al Exempt optional notification handlers from the HandlerFunctions execution rule 2026-09-02 11:46:13 +02:00
ui-handlers-in-tests.good.al Exempt optional notification handlers from the HandlerFunctions execution rule 2026-09-02 11:46:13 +02:00
ui-handlers-in-tests.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
ui-test-codeunit-naming.bad.al 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
ui-test-codeunit-naming.good.al 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
ui-test-codeunit-naming.md 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (#157) 2026-09-29 17:12:51 +02:00
use-assert-isfalse-not-asserterror-for-boolean-checks.bad.al 3 AL/BC testing patterns from an external BC testing expert's blog (Luc van Vugt, fluxxus.nl) (#159) 2026-09-29 17:13:06 +02:00
use-assert-isfalse-not-asserterror-for-boolean-checks.good.al 3 AL/BC testing patterns from an external BC testing expert's blog (Luc van Vugt, fluxxus.nl) (#159) 2026-09-29 17:13:06 +02:00
use-assert-isfalse-not-asserterror-for-boolean-checks.md 3 AL/BC testing patterns from an external BC testing expert's blog (Luc van Vugt, fluxxus.nl) (#159) 2026-09-29 17:13:06 +02:00
use-generateguid-for-unique-test-fixture-values.bad.al 3 AL/BC patterns from CURABIS's internal automated-testing training material (#158) 2026-09-29 12:49:11 +02:00
use-generateguid-for-unique-test-fixture-values.good.al 3 AL/BC patterns from CURABIS's internal automated-testing training material (#158) 2026-09-29 12:49:11 +02:00
use-generateguid-for-unique-test-fixture-values.md 3 AL/BC patterns from CURABIS's internal automated-testing training material (#158) 2026-09-29 12:49:11 +02:00
use-library-codeunits-for-test-fixtures.bad.al Add testing knowledge: UI handlers, table relations, asserterror, fixtures (P1+P2) (#62) 2026-07-09 10:24:51 +02:00
use-library-codeunits-for-test-fixtures.good.al Add testing knowledge: UI handlers, table relations, asserterror, fixtures (P1+P2) (#62) 2026-07-09 10:24:51 +02:00
use-library-codeunits-for-test-fixtures.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
use-testpage-editable-to-verify-field-editability.bad.al 3 AL/BC patterns from CURABIS's internal automated-testing training material (#158) 2026-09-29 12:49:11 +02:00
use-testpage-editable-to-verify-field-editability.good.al 3 AL/BC patterns from CURABIS's internal automated-testing training material (#158) 2026-09-29 12:49:11 +02:00
use-testpage-editable-to-verify-field-editability.md 3 AL/BC patterns from CURABIS's internal automated-testing training material (#158) 2026-09-29 12:49:11 +02:00
use-testpage-visible-enabled-to-verify-field-ui-state.bad.al 3 AL/BC patterns from CURABIS's internal automated-testing training material (#158) 2026-09-29 12:49:11 +02:00
use-testpage-visible-enabled-to-verify-field-ui-state.good.al 3 AL/BC patterns from CURABIS's internal automated-testing training material (#158) 2026-09-29 12:49:11 +02:00
use-testpage-visible-enabled-to-verify-field-ui-state.md 3 AL/BC patterns from CURABIS's internal automated-testing training material (#158) 2026-09-29 12:49:11 +02:00