Skip to content

Commit c2e5e06

Browse files
committed
address copilot feedback
1 parent 36b1ec1 commit c2e5e06

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

.github/instructions/powershell-pester-5.instructions.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,23 @@ This guide provides PowerShell-specific instructions for creating automated test
1717
## Test Structure Hierarchy
1818

1919
```powershell
20-
BeforeAll { # Import tested functions }
21-
Describe 'FunctionName' {
20+
Describe 'FunctionName or FeatureName' {
21+
BeforeDiscovery {
22+
# Setup that runs before any tests are discovered
23+
}
24+
BeforeAll {
25+
# Common helper functions or variables
26+
}
2227
Context 'When condition' {
23-
BeforeAll { # Setup for context }
24-
It 'Should behavior' { # Individual test }
25-
AfterAll { # Cleanup for context }
28+
BeforeAll {
29+
# Setup for context
30+
}
31+
It 'Should behavior' {
32+
# Individual test
33+
}
34+
AfterAll {
35+
# Cleanup for context
36+
}
2637
}
2738
}
2839
```

.github/skills/create-dsc-resource/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Management tasks or operations are specific to the resource type, but may includ
2525
```
2626
// Copyright (c) Microsoft Corporation.
2727
// Licensed under the MIT License.
28+
2829
```
2930
For PowerShell test files, use `#` comment syntax instead of `//`.
3031

0 commit comments

Comments
 (0)