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

Pester v5 #1444

Merged
merged 85 commits into from Jun 11, 2020
Merged

Pester v5 #1444

merged 85 commits into from Jun 11, 2020

Commits on Apr 12, 2020

  1. Replace usage of $MyInvocation.MyCommand.Pat with $PSScriptRoot and c…

    …leanup tests
    Christoph Bergmeister committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    2811ab7 View commit details
    Browse the repository at this point in the history
  2. Fix 2 small mistakes, test should now be green again

    Christoph Bergmeister committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    d4f54f5 View commit details
    Browse the repository at this point in the history
  3. Adapt build.psm1

    Christoph Bergmeister committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    eeb251f View commit details
    Browse the repository at this point in the history
  4. Engine tests migration to Pester v5

    Christoph Bergmeister committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    36d213a View commit details
    Browse the repository at this point in the history
  5. use pester v5 in ci and always upload test results

    Christoph Bergmeister committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    b25714d View commit details
    Browse the repository at this point in the history
  6. Upgrade Rule tests to Pester v5 using BeforeAll block and addressing …

    …some -Skip problems already
    Christoph Bergmeister committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    a498236 View commit details
    Browse the repository at this point in the history
  7. -AllowPrerelease

    Christoph Bergmeister committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    765aad3 View commit details
    Browse the repository at this point in the history
  8. try bootstrap in wmf4

    Christoph Bergmeister committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    7a67f0e View commit details
    Browse the repository at this point in the history
  9. fix invoke-pester call in CI

    Christoph Bergmeister committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    9d17571 View commit details
    Browse the repository at this point in the history
  10. fix CorrectionExtent.tests.ps1

    Christoph Bergmeister committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    2de4c20 View commit details
    Browse the repository at this point in the history
  11. fix Helper.tests.ps1

    Christoph Bergmeister committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    a10983e View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2020

  1. Fix remaining tests with BeforeAll/AfterAll (discovery works now)

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    c6dd640 View commit details
    Browse the repository at this point in the history
  2. fix UseUsingScopeModifierInNewRunspaces.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    35ed07c View commit details
    Browse the repository at this point in the history
  3. make test cases more readable

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    a350f2b View commit details
    Browse the repository at this point in the history
  4. cleanup UseUsingScopeModifierInNewRunspaces.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    5350e87 View commit details
    Browse the repository at this point in the history
  5. Fix UseShouldProcessForStateChangingFunctions.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    f2e37f3 View commit details
    Browse the repository at this point in the history
  6. cleanup UseShouldProcessForStateChangingFunctions.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    2a9fa9f View commit details
    Browse the repository at this point in the history
  7. Fix PSCompatibilityCollector/Tests/UtilityApi.Tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    a5df593 View commit details
    Browse the repository at this point in the history
  8. Fix InvokeScriptAnalyzer.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    b6e6fda View commit details
    Browse the repository at this point in the history
  9. Format InvokeScriptAnalyzer.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    bce0a88 View commit details
    Browse the repository at this point in the history
  10. Fix ModuleHelp.Tests.ps1 and cleanup

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    afb1b98 View commit details
    Browse the repository at this point in the history
  11. Fix RuleSuppression.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    3413419 View commit details
    Browse the repository at this point in the history
  12. Fix Settings.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    350f840 View commit details
    Browse the repository at this point in the history
  13. format Settings.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    6bdf977 View commit details
    Browse the repository at this point in the history
  14. Fix Tests/Engine/TextEdit.tests.ps1 and format

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    f5ef381 View commit details
    Browse the repository at this point in the history
  15. Fix AllCompatibilityRules.Tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    184081f View commit details
    Browse the repository at this point in the history
  16. Fix AvoidUnloadableModuleOrMissingRequiredFieldInManifest.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    8c43725 View commit details
    Browse the repository at this point in the history
  17. Format AvoidUnloadableModuleOrMissingRequiredFieldInManifest.tests.ps…

    …1 to fix indentation
    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    be4b0a2 View commit details
    Browse the repository at this point in the history
  18. Fix AvoidUsingPlainTextForPassword.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    51a9fa9 View commit details
    Browse the repository at this point in the history
  19. fix place*brace tests

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    78ff1ab View commit details
    Browse the repository at this point in the history
  20. Format brace tests and fix PSCredentialType.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    d7f3f9a View commit details
    Browse the repository at this point in the history
  21. Fix UseCompatibleCommands.Tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    23de9a7 View commit details
    Browse the repository at this point in the history
  22. Fix UseCompatibleSyntax.Tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    b571e31 View commit details
    Browse the repository at this point in the history
  23. Fix UseCompatibleTypes.Tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    355658f View commit details
    Browse the repository at this point in the history
  24. Fix UseCompatibleCmdlets.tests.ps1

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    6314002 View commit details
    Browse the repository at this point in the history
  25. Fix variable clash between compatibility tests that were not in Befor…

    …eEach block and remove unused variables
    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    0346659 View commit details
    Browse the repository at this point in the history
  26. Fix LibraryUsage.tests.ps1 teardown syntax

    Christoph Bergmeister committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    28e77e8 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2020

  1. Fix LibraryUsage.tests.ps1

    Christoph Bergmeister committed Apr 14, 2020
    Configuration menu
    Copy the full SHA
    d86a32b View commit details
    Browse the repository at this point in the history
  2. rc3 for wmf4

    Christoph Bergmeister committed Apr 14, 2020
    Configuration menu
    Copy the full SHA
    9cd193d View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2020

  1. Properly execute library tests and cleanup CustomizedRule.tests.ps1

    Christoph Bergmeister committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    6831297 View commit details
    Browse the repository at this point in the history
  2. tidy up

    Christoph Bergmeister committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    9adf595 View commit details
    Browse the repository at this point in the history
  3. cleanup module imports and only import once at the root

    Christoph Bergmeister committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    75da17e View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2020

  1. Fix 5 of 6 v4 tests and add logging to better understand modulehelp f…

    …ailure
    Christoph Bergmeister committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    2ca286d View commit details
    Browse the repository at this point in the history
  2. remove test-psversion functions and fix v3 or v4 checks

    Christoph Bergmeister committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    c6f6ab0 View commit details
    Browse the repository at this point in the history
  3. Fix ModuleHelp.Tests.ps1 for v4 and cleanup

    Christoph Bergmeister committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    391c015 View commit details
    Browse the repository at this point in the history
  4. Really fix ModuleHelp.Tests.ps1 on v4 and cleanup invoke-pester calls

    Christoph Bergmeister committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    a42bba2 View commit details
    Browse the repository at this point in the history
  5. add debugging as to why there is no TestResults.xml on Ubuntu

    Christoph Bergmeister committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    eabcb6c View commit details
    Browse the repository at this point in the history
  6. fix yaml

    Christoph Bergmeister committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    4deff83 View commit details
    Browse the repository at this point in the history
  7. fix test file upload on Ubuntu (casing) and ensure test file always g…

    …ets uploaded on appveyor
    Christoph Bergmeister committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    1fde869 View commit details
    Browse the repository at this point in the history
  8. Merge branch 'master' of https://github.com/powershell/psscriptanalyzer

    … into pesterv5PoC
    
    # Conflicts:
    #	build.psm1
    #	tools/appveyor.psm1
    Christoph Bergmeister committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    d23ed36 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'master' of https://github.com/powershell/psscriptanalyzer

    … into pesterv5PoC
    
    # Conflicts:
    #	PSCompatibilityCollector/Tests/UtilityApi.Tests.ps1
    Christoph Bergmeister committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    30f9ed9 View commit details
    Browse the repository at this point in the history
  10. move appveyor upload back

    Christoph Bergmeister committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    1e9d3cb View commit details
    Browse the repository at this point in the history
  11. move appveyor into finally

    Christoph Bergmeister committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    adf4c1e View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2020

  1. Merge branch 'master' of https://github.com/powershell/psscriptanalyzer

    … into pesterv5PoC
    
    # Conflicts:
    #	Tests/Engine/CustomizedRule.tests.ps1
    #	Tests/Engine/EditableText.tests.ps1
    #	Tests/Engine/Extensions.tests.ps1
    #	Tests/Engine/GetScriptAnalyzerRule.tests.ps1
    #	Tests/Engine/GlobalSuppression.test.ps1
    #	Tests/Engine/InvokeFormatter.tests.ps1
    #	Tests/Engine/InvokeScriptAnalyzer.tests.ps1
    #	Tests/Engine/LibraryUsage.tests.ps1
    #	Tests/Engine/ModuleDependencyHandler.tests.ps1
    #	Tests/Engine/RuleSuppression.tests.ps1
    #	Tests/Engine/RuleSuppressionClass.tests.ps1
    #	Tests/Engine/Settings.tests.ps1
    #	Tests/Rules/AlignAssignmentStatement.tests.ps1
    #	Tests/Rules/AvoidConvertToSecureStringWithPlainText.tests.ps1
    #	Tests/Rules/AvoidDefaultTrueValueSwitchParameter.tests.ps1
    #	Tests/Rules/AvoidEmptyCatchBlock.tests.ps1
    #	Tests/Rules/AvoidGlobalAliases.tests.ps1
    #	Tests/Rules/AvoidGlobalFunctions.tests.ps1
    #	Tests/Rules/AvoidGlobalVars.tests.ps1
    #	Tests/Rules/AvoidInvokingEmptyMembers.tests.ps1
    #	Tests/Rules/AvoidNullOrEmptyHelpMessageAttribute.tests.ps1
    #	Tests/Rules/AvoidPositionalParameters.tests.ps1
    #	Tests/Rules/AvoidReservedParams.tests.ps1
    #	Tests/Rules/AvoidShouldContinueWithoutForce.tests.ps1
    #	Tests/Rules/AvoidTrailingWhitespace.tests.ps1
    #	Tests/Rules/AvoidUnloadableModuleOrMissingRequiredFieldInManifest.tests.ps1
    #	Tests/Rules/AvoidUserNameAndPasswordParams.tests.ps1
    #	Tests/Rules/AvoidUsingAlias.tests.ps1
    #	Tests/Rules/AvoidUsingComputerNameHardcoded.tests.ps1
    #	Tests/Rules/AvoidUsingDeprecatedManifestFields.tests.ps1
    #	Tests/Rules/AvoidUsingInvokeExpression.tests.ps1
    #	Tests/Rules/AvoidUsingPlainTextForPassword.tests.ps1
    #	Tests/Rules/AvoidUsingReservedCharNames.tests.ps1
    #	Tests/Rules/AvoidUsingWMICmdlet.tests.ps1
    #	Tests/Rules/AvoidUsingWriteHost.tests.ps1
    #	Tests/Rules/DscExamplesPresent.tests.ps1
    #	Tests/Rules/DscTestsPresent.tests.ps1
    #	Tests/Rules/MisleadingBacktick.tests.ps1
    #	Tests/Rules/PSCredentialType.tests.ps1
    #	Tests/Rules/PlaceCloseBrace.tests.ps1
    #	Tests/Rules/PossibleIncorrectComparisonWithNull.tests.ps1
    #	Tests/Rules/ProvideCommentHelp.tests.ps1
    #	Tests/Rules/ReturnCorrectTypesForDSCFunctions.tests.ps1
    #	Tests/Rules/UseBOMForUnicodeEncodedFile.tests.ps1
    #	Tests/Rules/UseCmdletCorrectly.tests.ps1
    #	Tests/Rules/UseCompatibleCmdlets.tests.ps1
    #	Tests/Rules/UseConsistentIndentation.tests.ps1
    #	Tests/Rules/UseConsistentWhitespace.tests.ps1
    #	Tests/Rules/UseDSCResourceFunctions.tests.ps1
    #	Tests/Rules/UseDeclaredVarsMoreThanAssignments.tests.ps1
    #	Tests/Rules/UseIdenticalMandatoryParametersForDSC.tests.ps1
    #	Tests/Rules/UseIdenticalParametersDSC.tests.ps1
    #	Tests/Rules/UseOutputTypeCorrectly.tests.ps1
    #	Tests/Rules/UseShouldProcessCorrectly.tests.ps1
    #	Tests/Rules/UseShouldProcessForStateChangingFunctions.tests.ps1
    #	Tests/Rules/UseSingularNounsReservedVerbs.tests.ps1
    #	Tests/Rules/UseSupportsShouldProcess.tests.ps1
    #	Tests/Rules/UseToExportFieldsInManifest.tests.ps1
    #	Tests/Rules/UseUTF8EncodingForHelpFile.tests.ps1
    #	Tests/Rules/UseVerboseMessageInDSCResource.Tests.ps1
    Christoph Bergmeister committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    738e528 View commit details
    Browse the repository at this point in the history
  2. fix merge error to make install pester v5 again

    Christoph Bergmeister committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    54dcafd View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2020

  1. Merge branch 'master' of https://github.com/powershell/psscriptanalyzer

    … into pesterv5PoC
    
    # Conflicts:
    #	PSCompatibilityCollector/Tests/UtilityApi.Tests.ps1
    Christoph Bergmeister committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    2b852f2 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2020

  1. Pester rc4

    Christoph Bergmeister committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    af25ec0 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2020

  1. Update to rc5

    bergmeister committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    a331b5d View commit details
    Browse the repository at this point in the history
  2. Pull in changes from master and resolve trivial merge conflict

    Christoph Bergmeister committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    7cc976c View commit details
    Browse the repository at this point in the history
  3. Merge branch 'pesterv5PoC' of https://github.com/bergmeister/psscript…

    …analyzer into pesterv5PoC
    Christoph Bergmeister committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    314e7d0 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2020

  1. cleanup ci run

    Christoph Bergmeister committed Apr 25, 2020
    Configuration menu
    Copy the full SHA
    0c3af3b View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2020

  1. Merge branch 'master' of https://github.com/powershell/psscriptanalyzer

    … into pesterv5PoC
    
    # Conflicts:
    #	Tests/Engine/LibraryUsage.tests.ps1
    Christoph Bergmeister committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    c3dd5a1 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2020

  1. rc6

    bergmeister committed May 4, 2020
    Configuration menu
    Copy the full SHA
    ea721fe View commit details
    Browse the repository at this point in the history

Commits on May 12, 2020

  1. rc7

    bergmeister committed May 12, 2020
    Configuration menu
    Copy the full SHA
    4fd600f View commit details
    Browse the repository at this point in the history

Commits on May 14, 2020

  1. rc8

    bergmeister committed May 14, 2020
    Configuration menu
    Copy the full SHA
    de8889b View commit details
    Browse the repository at this point in the history

Commits on May 16, 2020

  1. Update appveyor.psm1

    bergmeister committed May 16, 2020
    Configuration menu
    Copy the full SHA
    53f1f0b View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of https://github.com/powershell/PSScriptAnalyzer

    … into pesterv5PoC
    Christoph Bergmeister committed May 16, 2020
    Configuration menu
    Copy the full SHA
    98fdaf5 View commit details
    Browse the repository at this point in the history
  3. don't use -CI switch for local build and disable code coverage in CI

    Christoph Bergmeister committed May 16, 2020
    Configuration menu
    Copy the full SHA
    4b4a976 View commit details
    Browse the repository at this point in the history
  4. import pester module before running tests to import types

    Christoph Bergmeister committed May 16, 2020
    Configuration menu
    Copy the full SHA
    e6d1497 View commit details
    Browse the repository at this point in the history
  5. fix property name

    Christoph Bergmeister committed May 16, 2020
    Configuration menu
    Copy the full SHA
    1dff12d View commit details
    Browse the repository at this point in the history
  6. actually use configuration object (doh)

    Christoph Bergmeister committed May 16, 2020
    Configuration menu
    Copy the full SHA
    1bd9e96 View commit details
    Browse the repository at this point in the history
  7. config object

    Christoph Bergmeister committed May 16, 2020
    Configuration menu
    Copy the full SHA
    b683115 View commit details
    Browse the repository at this point in the history
  8. fix output verbosity

    Christoph Bergmeister committed May 16, 2020
    Configuration menu
    Copy the full SHA
    edfbd10 View commit details
    Browse the repository at this point in the history
  9. fix type casting of [string[]] of pester paths

    Christoph Bergmeister committed May 16, 2020
    Configuration menu
    Copy the full SHA
    570d287 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2020

  1. pester 5 GA

    Christoph Bergmeister committed May 27, 2020
    Configuration menu
    Copy the full SHA
    8baab13 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of https://github.com/powershell/psscriptanalyzer

    … into pesterv5PoC
    
    # Conflicts:
    #	Tests/Rules/UseUsingScopeModifierInNewRunspaces.tests.ps1
    Christoph Bergmeister committed May 27, 2020
    Configuration menu
    Copy the full SHA
    752307e View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2020

  1. Pester 5.0.2

    bergmeister committed Jun 2, 2020
    Configuration menu
    Copy the full SHA
    b4eb871 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2020

  1. move testcases declaration before test

    Christoph Bergmeister committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    932ca10 View commit details
    Browse the repository at this point in the history
  2. remove left-over comments

    Christoph Bergmeister committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    b540737 View commit details
    Browse the repository at this point in the history
  3. remove unnecessary [bool] in if condition

    Christoph Bergmeister committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    ea23a46 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6a44a18 View commit details
    Browse the repository at this point in the history
  5. fix missing whitespace in test that made test invalid

    Christoph Bergmeister committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    5ee8a38 View commit details
    Browse the repository at this point in the history
  6. empty commit since Azure Pipelines did not trigger

    Christoph Bergmeister committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    1619ad8 View commit details
    Browse the repository at this point in the history
  7. empty commit since Azure Pipelines did not trigger again

    Christoph Bergmeister committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    6a13f04 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2020

  1. empty commit since Azure Pipelines did not trigger again

    Christoph Bergmeister committed Jun 8, 2020
    Configuration menu
    Copy the full SHA
    3b21278 View commit details
    Browse the repository at this point in the history