PowerShell scripts to easily run the Pester tests #307
stijnmoreels
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
I see what you mean, I often forget to change the moduleversion (or forget to change this back and accidentally commit this file as well 😉). Just thinking out loud, we could also do it the other way around, change the code to a valid moduleversion and setting the appsettings to the local variant, and then one of the first steps of the pipeline could be to change the module version to Did a bit of googling as well, because there must be other people running into the same stuff we are, but to my surprise I can't really find anything on this. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, when you want to run the Pester unit/integration tests. You need to do some manually tasks first locally, like:
Wouldn't it be nice if we could have some PS scripts in our repo that does this for us locally? So, if we want for example run unit tests, we could just:
Just thinking out-loud. We could place our scripts in the repo so everyone has access to them and can run them. The scripts would need to set a valid version to the modules and replace the
appsettings.json
toappsettings.local.json
before theInvoke-Pester
command could be run. Also, these changes should be reverted once the test run is done.Beta Was this translation helpful? Give feedback.
All reactions