Skip to content
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

Automatic tests with Pester #10

Open
VectorBCO opened this issue Apr 13, 2020 · 1 comment · Fixed by #17 or #23
Open

Automatic tests with Pester #10

VectorBCO opened this issue Apr 13, 2020 · 1 comment · Fixed by #17 or #23

Comments

@VectorBCO
Copy link
Owner

VectorBCO commented Apr 13, 2020

Problem
Script should be tested before execution in a prod environment. Test reg files already exists and can be used for manual tests, but manual tests is nit a good practice, and should be created autotests.

Test cases
Pester tests should contain a scrith which will:
[Done] - import reg files
[Done] - run script without parameters and check that test services was fixed (positive and negative scenarious)
[Done] - run script with -FixUninstall parameter and check that test uninstall strings fixed (positive and negative scenarious)
[Done] - import reg files once again
[Done] - execute script with -FixUninstall, -FixEnv and -CreateBackup parameters and check that backup files was created and contain correct values, and values in the registry are correct

  • execute script with -FixUninstall and -RestoreBackup parameters and check that values in the registry are reverted back (as before fixing)

**

@VectorBCO VectorBCO self-assigned this Apr 18, 2020
@VectorBCO VectorBCO linked a pull request Apr 19, 2020 that will close this issue
@VectorBCO VectorBCO added this to the Fully automated tests milestone Apr 24, 2020
@VectorBCO VectorBCO linked a pull request Jun 30, 2020 that will close this issue
@VectorBCO VectorBCO reopened this Jul 1, 2020
@VectorBCO
Copy link
Owner Author

left one more testcase from this bundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment