-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help Wanted: Convert tests to Pester 5 #1654
Comments
@johlju i just finished SqlRole and SqlTraceFlag, but i am kinda stuck at step 5 in the above example. thanks to step 1 i only have a local branch, and have no clue how to create a pull request for that (local) branch. |
Ah, good point, I missed that step. 😊 You have to add a remote to your own fork. Do this before step 5. 😊
I think you can also branch out by running (I’m not sure it possible to rename on push):
Or just do this which will push current branch to your fork.
Then send in that working branch as a PR to my fork. Christmas was great! Hope you had a great Christmas too! 😊 |
Updated the issue description with the above. |
I appreciate if you are willing to help converting tests.
There is a PR #1550 currently in draft where community can add converted test that locally passes in Pester 5. Due to that Pester 5 is not really backward compatible ALL test must be converted and merged in one go. Pester 5 is a big improvement how to write and adds stability to run tests. Can we get the tests converted we can use future features that will be added to Pester.
How to help
git clone -b f/support-pester-5 https://github.com/johlju/SqlServerDsc cd SqlServerDsc
Invoke-Pester
from console like below, or run/debug the from within Visual Studio code (see note above).Replace the URL with your username, e.g.
https://github.com/johlju/SqlServerDsc
What needs to be done
These tests need to be converted. See an existing converted unit test to see the pattern needed.
Read the blog post to know how Pester 5 tests should look like: https://dsccommunity.org/blog/convert-tests-to-pester5-for-dsc-community-repository/
Unit tests
These unit tests need to be converted.
Integration tests
These integration tests need to be converted.
The text was updated successfully, but these errors were encountered: