You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLAUDE.md - Merge development branch updates with PR branch changes
- Added Command Naming and Creation section from development
- Preserved Microsoft SMO Property Name Typos section
- Updated Test Management Guidelines to allow tests for new features
- Updated verification checklist and summary with all rules
Co-authored-by: Chrissy LeMaire <potatoqualitee@users.noreply.github.com>
2.**Use approved verbs** - Always use approved PowerShell verbs from the standard set (Get, Set, New, Remove, Invoke, etc.)
312
+
313
+
3.**Consistent naming pattern** - Follow the `<Verb>-Dba<Noun>` pattern consistently
314
+
315
+
```powershell
316
+
# CORRECT - Singular nouns
317
+
function Get-DbaDatabase { }
318
+
function Set-DbaLogin { }
319
+
function New-DbaAgent { }
320
+
function Remove-DbaJob { }
321
+
322
+
# WRONG - Plural nouns
323
+
function Get-DbaDatabases { }
324
+
function Set-DbaLogins { }
325
+
function New-DbaAgents { }
326
+
```
327
+
303
328
### Microsoft SMO Property Name Typos
304
329
305
330
**CRITICAL KNOWLEDGE**: Some Microsoft SMO (SQL Server Management Objects) properties contain typos in their official names. These are NOT errors - they are the actual property names you must use.
@@ -414,14 +439,13 @@ AfterAll {
414
439
415
440
### Test Management Guidelines
416
441
417
-
**CRITICAL RULE: DO NOT ADD ADDITIONAL UNIT TESTS UNLESS EXPLICITLY REQUESTED**
418
-
419
-
The dbatools test suite must remain manageable in size. Follow these strict guidelines:
442
+
The dbatools test suite must remain manageable in size while ensuring adequate coverage for important functionality. Follow these guidelines:
420
443
421
444
**When to Update Tests:**
422
445
-**ALWAYS update parameter validation tests** when parameters are added or removed from a command
423
-
-**ONLY add regression tests** when fixing a specific bug that needs to be prevented from recurring
424
-
-**NEVER add new unit tests** unless the user explicitly asks for them
446
+
-**ADD tests for new functionality** - When adding new parameters or features, include tests that verify the new functionality works correctly
447
+
-**ADD regression tests** when fixing a specific bug that needs to be prevented from recurring
448
+
-**AVOID bloat** - Don't add generic coverage tests for basic operations unless they test a specific fix or new feature
0 commit comments