Closed it-praktyk closed 6 years ago
Is this that crucial for the release? How many regular users of gherkin are there apart from Jaykul's team? Ten maybe? So how about we put it in 4.1?
@Jaykul, could you mark which Gherkin-related functions exported by Pester module shouldn't be directly invoked?
Thank you.
Invoke-Gherkin is the big kahuna, like Invoke-Pester Invoke-GherkinStep should probably be private...
Find-GherkinStep is useful outside of tests.
The rest map roughly to the Pester functions, and are meant for use in .Steps.ps1 files like the Pester versions are only meant for use in .Tests.ps1 files
Gherkin | Pester |
---|---|
GherkinStep | It |
BeforeEachFeature | BeforeAll |
AfterEachFeature | AfterAll |
BeforeEachScenario | BeforeEach |
AfterEachScenario | AfterEach |
Context The function [Find-GherkinStep] - Help
[-] Example - At least one example exist 9ms
Expected {0} to be greater than {0}
103: $ExamplesCount | Should BeGreaterthan 0
at Invoke-LegacyAssertion, <FOLDER_PATH>\Pester\Functions\Assertions\Should.ps1: line 190
at <ScriptBlock>, <FOLDER_PATH>\Pester\Help.Tests.ps1: line 103
Context The function [GherkinStep] - Help
[-] Example - At least one example exist 10ms
Expected {0} to be greater than {0}
103: $ExamplesCount | Should BeGreaterthan 0
at Invoke-LegacyAssertion, <FOLDER_PATH>\Pester\Functions\Assertions\Should.ps1: line 190
at <ScriptBlock>, <FOLDER_PATH>\Pester\Help.Tests.ps1: line 103
It can (?) be skipped if the function Invoke-GherkinStep will not be exported like I propose in the pull request #948.
Context The function [Invoke-GherkinStep] - Help
[-] Description for the function is filled up 12ms
Expected: value to not be empty
67: $FunctionDescription | Should not BeNullOrEmpty
at Invoke-LegacyAssertion, <FOLDER_PATH>\Pester\Functions\Assertions\Should.ps1: line 190
at <ScriptBlock>, <FOLDER_PATH>\Pester\Help.Tests.ps1: line 67
[-] Example - At least one example exist 16ms
Expected {0} to be greater than {0}
103: $ExamplesCount | Should BeGreaterthan 0
at Invoke-LegacyAssertion, <FOLDER_PATH>\Pester\Functions\Assertions\Should.ps1: line 190
at <ScriptBlock>, <FOLDER_PATH>\Pester\Help.Tests.ps1: line 103
@Jaykul, thank you for your answer.
Invoke-GherkinStep should probably be private...
Can you prepare the pull request which changes exported module member?
@Jaykul, I prepared a pull request what I asked you about in the previous comment.
The PR #948 is merged.
Thanks guys, it's been a bit ... crazy over here.
I'll add examples for those two (GherkinStep
and Find-GherkinStep
)
@Jaykul, can I ask for these examples?
I just opened the pull request #955 what contains tests to validate help completions.
@Jaykul, gentle reminder. Thank you.
I went ahead and created a few simple examples for these commands.
Thank you @KevinMarquette!
Completed, #994, #995
One of the biggest features of Pester v4 is the implementation of Gherking-style (is it a correct description?).
I checked a status of help for Gherkin related functions - I used for this https://github.com/it-praktyk/Pester/tree/DevV4_Addd_Tests_For_Help_2 - and help is not completed - results are listed below.
I think that it should be added before releasing of final Pester v4 version.
What do you think?
Guys - especially: @Jaykul, @adbertram, @KevinMarquette - help is needed.