Pester 6.0.0-rc1 is now available

Pester 6.0.0-rc1 is now available

Title: Pester 6.0.0-rc1 is out

First RC of Pester 6 is up and it's feature complete, so I'd love for people to kick the tires before the final release. It runs on Windows PowerShell 5.1 and PowerShell 7.2+, and it's built on the v5 runtime, so Discovery & Run, the config object and the result object all still work the way you know.

The headline is a new set of assertions. The Assert project got merged in and now ships as Should-* commands (dash, no space):

Get-Planet | Should-Be 'Earth'

Instead of everything funneling through Should -Be, these are specialized and type-aware, so the failure messages are clearer and $null, empty collections and single-item arrays stop surprising you. The old Should -Be still works and isn't going anywhere, the new ones are just additive. Mix both, migrate whenever. If you want to go all in, $config.Should.DisableV5 = $true switches the old syntax off so you can't use it by accident.

There's also Should-BeEquivalent for deep, recursive object comparison with a real property-by-property diff. Great for asserting on a whole API response or config object in one shot instead of poking at ten properties.

Other stuff worth knowing:

  • Discovery and run now happen per file instead of one big global discovery phase. Mostly invisible if your files are already self-contained, but discovery-time side effects don't leak across files anymore. Each file should import what it needs.
  • Experimental parallel runner (Run.Parallel = $true), one file per runspace on PS7+. Early prototypes went from ~6.5s to ~1.2s. Opt-in, config shape may still change, and it quietly falls back to serial with a warning when it can't parallelize.
  • Faster code coverage by default — uses the Profiler's tracer instead of breakpointing every command. Added Cobertura output next to JaCoCo.
  • PowerShell 5.1 and 7.2+ only. PS 3/4/6 and early 7 are gone, which let us drop a pile of compat code and move the C# to .NET 8.
  • Mocking: Assert-MockCalled and Assert-VerifiableMock are removed (use Should -Invoke / Should-Invoke), and the implicit fall-through to the real command is gone so mocks are more predictable.

Release notes: https://github.com/pester/Pester/releases/tag/6.0.0-rc1

Bugs and feedback very welcome.

u/nohwnd — 9 days ago

How to maximize under stairs home office

I moved my home office under stairs that connects the two floors of our flat, and I am having a dilema how to set it up.

The short wall next to door is 108cm. There is a big window on the opposing wall. The white squares and rugs show where stairs are <150cm above floor, so that is where the usable space ends.

The door look very small, but they are recessed so I am showing only the part that affects my work area.

Option A: My current setup is in the first picture where the table is along the wall, and I have a 160x80cm table (shown smaller in the picture).

This has the advantage of being able to have a big table, and not requiring careful cable management because the back side of the table is facing the wall.

Downside is that any family members walking behind me can be seen when they need to pass through the room.

https://preview.redd.it/1qocrhspl96h1.png?width=1054&format=png&auto=webp&s=8bb5e88d697101d59433f34b0dd006ec2909a9f0

Option B: I turn the desk around to have wall behind my back, where I can put additional storage. and shelves and make a nice background with plants.

Upside: There is more privacy because I will have wall behind my back and my camera will see only this.

Downside: This will require my table to shrink, and possibly get rid of one of my displays (currently 32" 4k, + 27" in portrait mode), or getting rid of the speakers I have on my table. I use laptop + display for work so I can probably make it work with just those 2 displays.

https://preview.redd.it/6gow2y6km96h1.png?width=1079&format=png&auto=webp&s=51ecfa91fd9237c456ffa85abae40e7b4e2dc450

Option C: I was also considering having my desk facing the small wall, but that would mean I have a window behind my back, and I don't think that would work during summer.

Any other ideas to maximize the usability of this space?

reddit.com
u/nohwnd — 28 days ago

Please change the sockets on wall to european sockets

https://preview.redd.it/75ybitf3k92h1.jpg?width=900&format=pjpg&auto=webp&s=9d4300f3ebc49e82d037b46c0b8aeea284c8b3f2

Got this background from etsy (will send the original in dm for editing it is ~2500x1800).

Please edit the sockets to look like they are in europe (e.g. the common abb tango eu socket). or replace with something that fits, e.g. another picture. I like that it is imperfect, simply removing the sockets makes the picture too empty.

reddit.com
u/nohwnd — 2 months ago
▲ 19 r/Coffee

Replacing Aergrind seal - o-ring fitting hack

I have Aergrind hand grinder and use it every day. It is several years old, it is the older version that has metal lid, silver handle, and is all black. It always had problems holding the settings a bit, and was slipping from 2-2 (2 turns, + 2 notches) to 2-8 often. But recently it gave up, and the settings just go from 2-2 to 5+, which makes it unusable.

I read online that this is caused by the small o-ring failing and it needs replacement, I luckily still have the original and decided to change it. It seemed impossible to put it on without damaging the o-ring, and I had no special tools.

I remembered 5-minutes craft video and took a long piece of ribbon, threaded that through the grinder and then threaded that through the o-ring. This gave me leverage to pull the o-ring apart, and also protected it from the threads on the grinder shaft. After that I cut the ribbon carefully and took the pieces out.

If you google Ultimate o-ring hack, you will see what I mean (will post photos below). I did use ribbon though rather than string, rubber gets cut easily by applying too much force, and ribbon helped

Now the settings are very firm, and it works so much better than I remember. Should have done this years ago instead of waiting.

reddit.com
u/nohwnd — 2 months ago