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

ref(tests): localize unit test fixtures to package #8189

Merged
merged 1 commit into from May 22, 2020

Conversation

adamreese
Copy link
Member

Use test fixtures that are in the same package as test.

Use test fixtures that are in the same package as test.

Signed-off-by: Adam Reese <adam@reese.io>
@adamreese adamreese self-assigned this May 22, 2020
@helm-bot helm-bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 22, 2020
Copy link
Member

@technosophos technosophos left a comment

Choose a reason for hiding this comment

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

LGTM.

This is exclusively a re-organization of tests. The one non-test API that changed is changed in a non-breaking way to expose a private variable to the testing fixtures. Many unnecessary files are remoed. And the more disk IO we can ditch during testing, the better our tests will perform.

output, err := client.Run("../../cmd/helm/testdata/testcharts/alpine")
if err != nil {
t.Fatal(err)
client.chart = &chart.Chart{
Copy link
Member

Choose a reason for hiding this comment

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

Ah! Yes! This is much cleaner for testing.

@adamreese adamreese merged commit 15d9a61 into helm:master May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants