mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 06:36:55 +01:00
Fix reporting skill index expectation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
b545b22fb9
commit
d31b56eec5
1 changed files with 3 additions and 2 deletions
5
.github/scripts/Test-SkillIndex.ps1
vendored
5
.github/scripts/Test-SkillIndex.ps1
vendored
|
|
@ -91,6 +91,7 @@ try {
|
||||||
'microsoft/skills/review/al-testing-review.md',
|
'microsoft/skills/review/al-testing-review.md',
|
||||||
'microsoft/skills/review/al-data-modeling-review.md',
|
'microsoft/skills/review/al-data-modeling-review.md',
|
||||||
'microsoft/skills/review/al-query-review.md',
|
'microsoft/skills/review/al-query-review.md',
|
||||||
|
'microsoft/skills/review/al-reporting-review.md',
|
||||||
'microsoft/skills/review/al-appsource-review.md',
|
'microsoft/skills/review/al-appsource-review.md',
|
||||||
'microsoft/skills/review/al-telemetry-review.md'
|
'microsoft/skills/review/al-telemetry-review.md'
|
||||||
)
|
)
|
||||||
|
|
@ -99,7 +100,7 @@ try {
|
||||||
throw "Expected exactly one al-code-review record, found $($review.Count)."
|
throw "Expected exactly one al-code-review record, found $($review.Count)."
|
||||||
}
|
}
|
||||||
if ((@($review[0].subSkills) -join "`n") -cne ($expectedLeaves -join "`n")) {
|
if ((@($review[0].subSkills) -join "`n") -cne ($expectedLeaves -join "`n")) {
|
||||||
throw 'al-code-review subSkills did not preserve the declared 16-leaf order.'
|
throw 'al-code-review subSkills did not preserve the declared 17-leaf order.'
|
||||||
}
|
}
|
||||||
foreach ($leafPath in $expectedLeaves) {
|
foreach ($leafPath in $expectedLeaves) {
|
||||||
$leaf = @($skills | Where-Object path -ceq $leafPath)
|
$leaf = @($skills | Where-Object path -ceq $leafPath)
|
||||||
|
|
@ -237,4 +238,4 @@ finally {
|
||||||
Remove-Item -LiteralPath $tmp -Recurse -Force -ErrorAction SilentlyContinue
|
Remove-Item -LiteralPath $tmp -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output 'Skill-index check PASSED: deterministic, schema-valid, and all 16 review leaves preserved in order.'
|
Write-Output 'Skill-index check PASSED: deterministic, schema-valid, and all 17 review leaves preserved in order.'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue