pester / Pester

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

Does somthing like @afterstep exist for Pester 4.6 with Invoke Gherkin #2417

Open BenjaminLaschkar opened 8 months ago

BenjaminLaschkar commented 8 months ago

Checklist

Where did you see it?

Pester 4.6.0

Function name

Invoke-Gherkin

What is the issue?

Hi, I use Pester 4.6 and I am working on an architechture to provide screenshoot after each step of my tests.

I saw that something like AfterStep and BeforeStep were existing in the 4.0.0 (GherkinHooks) But nothing similar in the 4.6.0

Was it removed completely ? Or maybe it still exist and I am missing something ?

fflaten commented 8 months ago

It was removed in 4.0.3-rc as part of #726. Not sure why. I only see an explicit comment about removing *AllFeatures hooks but they were all removed simultaneously.

Maybe @Jaykul remembers why, though it has been 7 years.