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

(#2500) Add E2E tests for template parameters #2817

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

AdmiringWorm
Copy link
Member

This commit updates the end to end tests to add regression
testing for the incoming template parameters.

Description Of Changes

This pull request is a followup from the PR #2507 that implemented the functionality to list parameters in templates.

Motivation and Context

To have E2E regression tests available.

Testing

  1. Ran all template command tests in test kitchen

Change Types Made

  • Bug fix (non-breaking change)
  • Feature / Enhancement (non-breaking change)
  • Breaking change (fix or feature that could cause existing functionality to change)
  • PowerShell code changes.
  • Tests

Related Issue

#2500
https://app.clickup.com/t/20540031/ENGTASKS-1480

Change Checklist

  • Requires a change to the documentation
  • Documentation has been updated
  • Tests to cover my changes, have been added
  • All new and existing tests passed.
  • PowerShell v2 compatibility checked.

@AdmiringWorm AdmiringWorm self-assigned this Sep 15, 2022
@AdmiringWorm AdmiringWorm requested a review from corbob September 15, 2022 15:47
@choco-bot
Copy link

Task linked: ENGTASKS-1480 Chocolatey CLI

@coveralls
Copy link

coveralls commented Sep 15, 2022

Coverage Status

Coverage remained the same at 27.692% when pulling 5c78909 on AdmiringWorm:templates-parameter-tests into f44f65f on chocolatey:develop.

Copy link
Member

@corbob corbob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of notes, nothing major.

Possibly the biggest thins I'm struggling with in this one is: can we possibly gate these tests without adding a whole bunch of skips... Or should we accept that many of these will possibly fail on 1.1.0 and just leave it at that?

tests/chocolatey-tests/choco-template.Tests.ps1 Outdated Show resolved Hide resolved
@AdmiringWorm AdmiringWorm force-pushed the templates-parameter-tests branch from 21acfd5 to 7f17351 Compare September 16, 2022 16:56
This commit updates the end to end tests to add regression
testing for the incoming template parameters.
Copy link
Member

@corbob corbob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@corbob
Copy link
Member

corbob commented Sep 20, 2022

Thanks for getting this fixed up @AdmiringWorm!

@corbob corbob merged commit 6f1afc5 into chocolatey:develop Sep 20, 2022
@AdmiringWorm AdmiringWorm deleted the templates-parameter-tests branch September 20, 2022 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants