OctopusDeploy / Library

| Public | A repository of step templates and other community-contributed extensions to Octopus Deploy
Other
170 stars 496 forks source link

Simplify pester #1500

Closed bcullman closed 2 months ago

bcullman commented 3 months ago

Background

Previously when new test files were created, the testableScripts array needed to be modified, meaning that new tests would always generate a diff in the Invoke-PesterTests.ps1 file as well

With this small change, Invoke-PesterTests.ps1 will just test all *.Tests.ps1 files it finds, so it should no longer need to be updated as new tests are created.

Pre-requisites [✔] Id should be a GUID that is not 00000000-0000-0000-0000-000000000000 NOTE If you are modifying an existing step template, please make sure that you do not modify the Id property (updating the Id will break the Library sync functionality in Octopus). [✔] Version should be incremented, otherwise the integration with Octopus won't update the step template correctly [✔] Parameter names should not start with $ [✔] Step template parameter names (the ones declared in the JSON, not the script body) should be prefixed with a namespace so that they are less likely to clash with other user-defined variables in Octopus (see https://github.com/OctopusDeploy/Issues/issues/2126). For example, use an abbreviated name of the step template or the category of the step template). [✔] LastModifiedBy field must be present, and (optionally) updated with the correct author [✔] The best practices documented here have been applied [NA] If a new Category has been created: [✔] An image with the name {categoryname}.png must be present under the step-templates/logos folder [NA] The switch in the humanize function in gulpfile.babel.js must have a case statement corresponding to it