-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Implement unit tests for all packages #48
Comments
Hey @AdmiringWorm Like what you are doing with the Unit Tests stuff. If I wanted to use the whole unit tests thing up on my repository (I actually like it compared to just running the "Test-RepoPackage.ps1" way of doing things, since your unit tests seem to be doing a whole lot more than just testing if the package updates/installs/uninstalls correctly). How would I go about setting it up? Like what would I need to change/do on appveyor exactly. Am I mainly just changing the force test packages (like the one you'd set up from https://github.com/majkinetor/au/wiki/AppVeyor#setting-up-the-force-test-project-optional) to use the (I can follow along what you have done for the repository side of things, mainly just trying to figure out the appveyor side of things xD Also does it do PR's like the "Test-RepoPackage.ps1" did, or does it completely ignore PR's and just does different branches that are not the master branch? |
@JourneyOver I'm glad you like it. When it comes to what changes you'll need to make (other than creating the unit tests itself), that would be quite simple. In the Replace the the code on line (98-100) with the following:
I haven't tested the above, but I think that should be enough (could cause problems with PR's though, but not sure about that). I do suggest taking the same aproach as me though, import both appveyor files, set up a separate instance that runs by using the new script (you'll need to change it in the UI to pick the correct script). Then just import the 'Invoke-PesterTests.ps1' script and create your unit tests.
I do believe it will run PR's as well, but haven't gotten around to test that just yet (feel free to open a PR to test it if you want 😄) If you have any more questions, feel free to reach out to me on gitter (probably won't answer until tomorrow though, as it's getting closer to bedtime). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
still in progress |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
still in progress |
No description provided.
The text was updated successfully, but these errors were encountered: