pester / Pester

Pester is the ubiquitous test and mock framework for PowerShell.
https://pester.dev/
Other
3.08k stars 470 forks source link

Add Assert assertions to Pester #2428

Closed nohwnd closed 3 months ago

nohwnd commented 5 months ago

Fix #1423 Fix #1316 Fix #1323 Fix #1355

PR Summary

This PR adds assertions from Assert module to Pester, to serve as a base for future assertions and to live side-by-side with the existing Should assertions that are based on parameter sets.

PR Checklist

fflaten commented 5 months ago

We should probably decide on #2381 soon, so these assertions can either implement it - or not. 🙂

nohwnd commented 4 months ago

/azp run

azure-pipelines[bot] commented 4 months ago
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.
nohwnd commented 4 months ago

This PR is getting too much, will start refactoring the existing assertions towards common pattern (to make them more similar to the current Should -* assertions), instead of adding new ones.

nohwnd commented 3 months ago

Should be good enough to release in 6.0.0-alpha1 so we can get other people to look at this. Please give at another quick review @fflaten .

fflaten commented 3 months ago

With 7k linediff I can't promise "quick", but I'll try tomorrow when my browser is done rendering the diff. 🙂 I'll trust your tests for functionality.

nohwnd commented 3 months ago

I've fixed all the suggestions, and what I did not fix I moved to issues :) Pls approve.