bcquality/microsoft/knowledge
Jesper Schulz-Wedde 3aa3581f95
Some checks failed
Validate knowledge index / validate-index (push) Has been cancelled
Validate frontmatter and structure / validate (push) Has been cancelled
Add testing knowledge: UI handlers, table relations, asserterror, fixtures (P1+P2) (#62)
* Add testing knowledge: UI handlers, table relations, asserterror, fixtures (P1+P2)

Six BC-specific testing-domain knowledge articles in community/knowledge/testing/, each with .good.al/.bad.al samples:

- ui-calls-require-test-handlers
- tablerelation-requires-prerequisite-records
- handlers-enqueue-never-assert
- handlerfunctions-attribute-must-match-ui-path
- asserterror-needs-expectederror-and-code
- use-library-codeunits-for-test-fixtures

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Move testing knowledge from community to microsoft layer

Relocates the six P1+P2 testing-domain articles (18 files: .md + .good.al + .bad.al each) from community/knowledge/testing/ to microsoft/knowledge/testing/ per maintainer request. Pure git-mv rename; no content or frontmatter changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Address review: merge handler articles, adopt enqueue-driven pattern

Respond to @nikolakukrika's review on #62:

- Merge ui-calls-require-test-handlers, handlerfunctions-attribute-must-match-ui-path
  and handlers-enqueue-never-assert into a single ui-handlers-in-tests article.
- Adopt the enqueue-from-test / dequeue-and-assert-in-handler pattern using
  Assert.ExpectedConfirm/ExpectedMessage (substring match), with Initialize()
  clearing LibraryVariableStorage and AssertEmpty() proving exact call counts.
- asserterror sample now uses Assert.ExpectedTestFieldError + FieldCaption instead
  of hardcoded message/code; article text points to the library helpers.
- Drop the tablerelation article and fold its test-relevant ordering point
  (relations checked on Validate/Insert(true); build parents first) into
  use-library-codeunits-for-test-fixtures.

Article count 198 -> 195.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-09 10:24:51 +02:00
..
breaking-changes Add breaking-changes knowledge domain and review leaf skill (#44) 2026-06-25 12:33:30 +02:00
error-handling Add open-ended bc-version range shorthand [N..] 2026-06-23 11:20:11 +02:00
events Promote events knowledge from community to Microsoft layer 2026-06-25 14:04:14 +02:00
interfaces Add interfaces knowledge domain and review leaf skill (#42) 2026-06-25 12:20:56 +02:00
performance Promote performance knowledge from community to Microsoft layer (#50) 2026-07-01 10:41:01 +02:00
privacy Improve PR-review parity: suggestion blocks, missing KB articles, privacy cross-ref 2026-05-27 15:45:49 +02:00
security Regenerate microsoft/knowledge from upstream BCApps instructions 2026-05-21 09:53:09 +02:00
style Improve PR-review parity: suggestion blocks, missing KB articles, privacy cross-ref 2026-05-27 15:45:49 +02:00
testing Add testing knowledge: UI handlers, table relations, asserterror, fixtures (P1+P2) (#62) 2026-07-09 10:24:51 +02:00
ui Promote ui knowledge from community to Microsoft layer (#51) 2026-07-01 10:41:24 +02:00
upgrade Regenerate microsoft/knowledge from upstream BCApps instructions 2026-05-21 09:53:09 +02:00
web-services Seed web-services (API v2) knowledge domain (#45) 2026-06-25 12:37:40 +02:00
.gitkeep Add .gitkeep files to community and microsoft directories; remove .gitkeep from samples 2026-04-17 06:03:14 +02:00