Add unit and feature tests for Send-MailMessage#9213
Add unit and feature tests for Send-MailMessage#9213adityapatwardhan merged 4 commits intoPowerShell:masterfrom ThreeFive-O:Send-MailMessage_FeatureTests
Conversation
test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1
Outdated
Show resolved
Hide resolved
test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1
Outdated
Show resolved
Hide resolved
|
Please don't use |
|
Will do, thank you @TravisEz13! |
test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1
Outdated
Show resolved
Hide resolved
| } | ||
| } | ||
|
|
||
| Describe "Send-MailMessage Feature Tests" -Tags Feature, RequireSudoOnUnix { |
There was a problem hiding this comment.
@iSazonov Feature tags for Pester are still available, but [feature] tag for commit messages in new PRs are now unnecessary, since all tests will be executed for PRs and daily builds on the CI agents.
There was a problem hiding this comment.
I think Ilya means the -Tags Feature in the code
There was a problem hiding this comment.
@RDIL The way I understood it: Are -Tags Feature is still necessary for this kind of scenario. In my opinion it makes sense to use Feature tag, since the scope of the tests is much broader, than just some basic CI tests. Also those tests influence the time to run all test heavily.
There was a problem hiding this comment.
They all seem appropriate to me
test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1
Outdated
Show resolved
Hide resolved
test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1
Outdated
Show resolved
Hide resolved
test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1
Outdated
Show resolved
Hide resolved
|
@ThreeFive-O Thank you for your contribution! |
PR Summary
This PR adds several unit and feature tests for Send-MailMessage cmdlet.
Add unit tests:
Add feature tests:
PR Context
This PR should check against the behavior of Send-MailMessage before work on a newer implementation of Send-MailMessage cmdlet starts.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.[feature]to your commit messages if the change is significant or affects feature tests