In working on the PSWordPress Module that Stephen Owen (@foxdeploy) has started I came across an interesting issue after running my Pester tests which calls - $ModuleFunction.Definition.Contains(’.Synopsis’) | Should be True to check for comment based help - and it was failing even though I had Comment Based help in there. The problem was that the Help was Above the Function Keyword - so this means that it wasn’t carried through to the $ModuleFunction.Definition property. So this is a good example of why CommentBased Help for a module should be held within the initial Curly Bracket for the function.
Beware where you place Comment based Help
Ryan YatesConsultant
Just a person in their 30's doing things in Tech & trying to break the stigma's around talking about Mental Health
Comments : 0
Comments for this post yet are either not opened yet or it has been decided not to have any for this post or something is up with how we are trying to display them. If you think there should be comments on this post please let our webmaster know. Otherwise, please try again later!