Skip to content
Discussion options

You must be logged in to vote

Pester runs the file to find the tests, your file only defines a function, it never calls it, so Describe never runs and discovery finds nothing.

A test file can have functions in it, you just need the Describe blocks to run when the file is invoked. Either move them out of the function, or call the function at the end of the file.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@fflaten
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nohwnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants