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

Randomize Unit Tests #116

Merged
merged 3 commits into from
Feb 11, 2024
Merged

Conversation

razo7
Copy link
Member

@razo7 razo7 commented Feb 7, 2024

Randomize all the specs per suite to test them in diffetnet orders of specs.

razo7 added 2 commits February 7, 2024 12:40
Randomize all the specs per suite to test them in diffetnet orders of specs.
go-verify should be running prior to other targets so it verifes the dependencies in go.mod. In addition FAR will fix imports and not only test imports.
Copy link
Contributor

openshift-ci bot commented Feb 7, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link
Contributor

openshift-ci bot commented Feb 7, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: razo7

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

@openshift-ci openshift-ci bot added the approved label Feb 7, 2024
@mshitrit
Copy link
Member

mshitrit commented Feb 7, 2024

/test 4.15-openshift-e2e

Makefile Outdated
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path --bin-dir $(LOCALBIN))" $(GINKGO) -r --keep-going --require-suite --vv ./api/... ./pkg/... ./controllers/... --coverprofile cover.out
test-no-verify: go-verify manifests generate fmt fix-imports vet envtest ginkgo ## Generate and format code, and run tests
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path --bin-dir $(LOCALBIN))" \
$(GINKGO) -r --keep-going --randomize-all --repeat=3 --require-suite --vv --coverprofile cover.out ./controllers/... ./api/... ./pkg/...
Copy link
Member

Choose a reason for hiding this comment

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

--repeat=3 - isn't that an overkill ?

Used for locally testing, but not needed upstream
@razo7
Copy link
Member Author

razo7 commented Feb 7, 2024

/test 4.15-openshift-e2e

@mshitrit
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Feb 11, 2024
@razo7 razo7 marked this pull request as ready for review February 11, 2024 08:13
@openshift-ci openshift-ci bot requested review from beekhof and slintes February 11, 2024 08:13
@openshift-merge-bot openshift-merge-bot bot merged commit 0fd91d4 into medik8s:main Feb 11, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants