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

add description feature to test tables #284

Merged

Conversation

harshanarayana
Copy link
Contributor

Enable Test Table Description capabilities

Closes #277

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: harshanarayana

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Jun 23, 2023
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 23, 2023
@harshanarayana
Copy link
Contributor Author

harshanarayana commented Jun 23, 2023

=== RUN   TestTableDriven
=== RUN   TestTableDriven/Random_numbers
=== RUN   TestTableDriven/Random_numbers/testWithDescription
=== RUN   TestTableDriven/Random_numbers/less_than_equal_64
=== RUN   TestTableDriven/Random_numbers/more_than_than_equal_128
=== RUN   TestTableDriven/Random_numbers/Assessment-3
        /Users/harshnar/Work/Tesseract/Maglev/mks/k8s/e2e-framework/examples/table/env.go:450: Failed Executing Test: This is an example of how to create a test with description
=== RUN   TestTableDriven/Feature-2
=== RUN   TestTableDriven/Feature-2/A_simple_feature
--- FAIL: TestTableDriven (0.00s)
    --- FAIL: TestTableDriven/Random_numbers (0.00s)
        --- FAIL: TestTableDriven/Random_numbers/testWithDescription (0.00s)
        --- PASS: TestTableDriven/Random_numbers/less_than_equal_64 (0.00s)
        --- PASS: TestTableDriven/Random_numbers/more_than_than_equal_128 (0.00s)
        --- PASS: TestTableDriven/Random_numbers/Assessment-3 (0.00s)
    --- PASS: TestTableDriven/Feature-2 (0.00s)
        --- PASS: TestTableDriven/Feature-2/A_simple_feature (0.00s)
FAIL
FAIL	sigs.k8s.io/e2e-framework/examples/table	1.218s

Example of test description being logged as part of the failure.

Copy link
Contributor

@negz negz left a comment

Choose a reason for hiding this comment

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

Thanks for tackling this @harshanarayana! I left some thoughts.

pkg/env/env.go Outdated Show resolved Hide resolved
pkg/features/builder.go Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 25, 2023
@harshanarayana harshanarayana force-pushed the enable-test-descriptions branch from aca984c to e73116c Compare June 25, 2023 17:36
Copy link
Contributor

@vladimirvivien vladimirvivien left a comment

Choose a reason for hiding this comment

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

This is great @harshanarayana.
I think this is enough for now. If someone asks for filtering based on description that can be added later.

@harshanarayana
Copy link
Contributor Author

@vladimirvivien If you are good with these changes, we can get this one merged?

@vladimirvivien
Copy link
Contributor

/lgtm
/Approved

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 2, 2023
@k8s-ci-robot k8s-ci-robot merged commit 2130f89 into kubernetes-sigs:main Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Distinguish feature/assessment reason from name
4 participants