Joel Bennett · @jaykul
354 followers · 469 posts · Server fosstodon.org

@matty or just Invoke-Pester

#powershell #testing #pester

Last updated 1 year ago

Clayton Tyger · @Clatent
49 followers · 171 posts · Server techhub.social

@bjompen oh man.. I assumed they would be a breeze for you! Have you tried it with v5? I honestly haven’t done much with it, but want to implement it into a a module I’m working on as well as a script I have

#pester

Last updated 1 year ago

Bjompen · @bjompen
261 followers · 369 posts · Server mastodon.nu

@Clatent every time I try to fix something or understand something in I end up spending weeks figuring out scopes only to realize I'm not nearly snart enough to understand how pester works.. I'm convinced it's at least 103% black magic involved.

#pester

Last updated 1 year ago

Ed · @Edthedev
194 followers · 54 posts · Server mastodon.sdf.org

I managed to get Robot Framework to complete a relatively complex task inside a container.

I'm relatively confident that the next integration test I use for my personal website will use Robot Framework. It currently uses tests, but it's hard to beat the readability of Robot Framework.

#web #automation #selenium #docker #powershell #pester

Last updated 1 year ago

set custom rules:

{{WORKSPACE}}.code-workspace:

```
"powershell.scriptAnalysis.settingsPath": ".vscode/analyzersettings.psd1"
```

this (Path to file) won't work directly in .vscode/settings.json
in a per folder setting - must be a worksapce setting.

#pester #powershell #vscode

Last updated 1 year ago

Pester tests after Packer builds a template. So cool

#hashicorp #packer #powershell #pester

Last updated 1 year ago

MrPowerShell · @MrPowerShell
86 followers · 68 posts · Server fosstodon.org

For today's on , we're going back into , with a dose of .

twitch.tv/mrpowershell/

#powershell #fridayfun #twitch #ugit #pester

Last updated 2 years ago

Rob Sewell He/Him · @robsewell
457 followers · 486 posts · Server tech.lgbt

RT @PSConfEU
New member to the organisers, @nohwnd is our local emissary in Prague for 2023. Well-known in the Community, maintainer, he can't wait to welcome you all in Czech Republic πŸ‘Œ

Grab your tickets: psconf.eu

#PsConfEU #powershell #pester

Last updated 2 years ago

Tinu πŸ‡¨πŸ‡­ · @tinuwalther
10 followers · 4 posts · Server techhub.social

Another neverending story it.martin-walther.ch/

Deployed a lot of ESXi Hosts with vSphere AutoDeploy in different network zones and vSphere SSO domains.
All settings (DHCP IP reservation, DNS records, BIOS settings, apply and remediate HostProfile, move to the spec. Cluster, assigning licence, etc) is done with and .

I did build a Framework with and with to test and deploy the node-files as Yaml to the selected environment (Test, Int, Prod).
The node.yml contains all the config to deploy an ESXi Host and will be used as inputfile for the workflow-script that orchestrate the deployment.

And now I found a few new ideas, to optimize this workflow.

#vmware #powershell #powercli #gitlab #pipeline #pester

Last updated 2 years ago

Tinu πŸ‡¨πŸ‡­ · @tinuwalther
10 followers · 3 posts · Server techhub.social

Another neverending story:

Deployed 8 ESXi Hosts with vSphere AutoDeploy in 2 different network zones and vSphere domains. All settings (DHCP IP reservation, DNS records, BIOS settings, apply and remediate HostProfile, move to the spec. Cluster, assigning licence, etc) is done with and .

I build a Framework with and with to test and deploy the node-files as Yaml to the selected environment (Test, Int, Prod). The node.yml contains all the config to deploy an ESXi Host and will be used as inputfile for the workflow-script that orchestrate the deployment.

I found a few new ideas, to optimize this workflow. πŸ˜€

#vmware #powershell #powercli #gitlab #pipeline #pester

Last updated 2 years ago

SOZDBA · @SOZDBA
108 followers · 14 posts · Server techhub.social

CarbonBlack you're killing me!
I had this talk with you already, and are not malicious!

Please, I just want to do my work 😭

#pester #dbatools

Last updated 2 years ago

Sass, David · @sassdawe
110 followers · 146 posts · Server infosec.exchange

I usually like change, but not this time.

BeforeDiscovery {} got me one step closer but I still need to deal with a hashtable what I don't understand.

#pester #powershell

Last updated 2 years ago

Sass, David · @sassdawe
110 followers · 146 posts · Server infosec.exchange

Are we still supposed to be able to do this with V5 and ?

describe "one" {
BeforeAll {
$array = 1..10
}
context "two" {
$array | foreach-object {
it "three" {
Write-Warning "$_"
1 | Should -BeExactly 1
}
}
}
}

#pester #powershell

Last updated 2 years ago

Sean Killeen · @sjkilleen
248 followers · 144 posts · Server mastodon.social

In case you're interested in with and -- I put up a quick repository where I do a ping-pong TDD of the String Calculator Kata:

github.com/SeanKilleen/pester-

#tdd #powershell #pester #dotnet #testing #automation

Last updated 2 years ago

Sean Killeen · @sjkilleen
319 followers · 231 posts · Server mastodon.social

In case you're interested in with and -- I put up a quick repository where I do a ping-pong TDD of the String Calculator Kata:

github.com/SeanKilleen/pester-

#tdd #powershell #pester #dotnet #testing #automation

Last updated 2 years ago

mdgrs · @mdgrs
30 followers · 28 posts · Server fosstodon.org

Ah, sorry. I'll make sure to write Import-Module inside the BeforeAll section.

essenceofcode.com/2022/11/17/p

#powershell #pester

Last updated 2 years ago

Sass, David · @sassdawe
89 followers · 69 posts · Server infosec.exchange

How to detect that a script or module is being executed by ?

Since version 5 we can do this in our Pester test:
```PowerShell
BeforeAll {
$isPester = $true
}
```

and use it like this in our actual module/script:
`if ( $isPester ) { Write-Log "this is a test" }`

#powershell #pester

Last updated 2 years ago