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

WIP - Use go test for unit testing #340

Closed

Conversation

adambkaplan
Copy link
Member

  • move ginkgo tests to "integration" test package
  • Rename test-unit to test-integration
  • Fix package naming

- Rename test-unit to test-integration
- Fix package naming
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 13, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign adambkaplan
You can assign the PR to them by writing /assign @adambkaplan in a comment when ready.

The full list of commands accepted by this bot can be found 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

@qu1queee
Copy link
Contributor

quick comment on this. I will be generating a new test suite called "integration"(see #322 ) that requires an instance of the build running and a k8s cluster to do k8s client api calls to test scenarios. The current ginkgo "unit-test" cannot belong under integration while is a very different approach. The current ginkgo "unit-test" are hermetic and constrained to what the binary have and do not require a k8s cluster neither an instance of the build operator running. I hope this helps to avoid overlaps.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 13, 2020
@openshift-ci-robot
Copy link

@adambkaplan: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

- Update unit test to generate coverage profile
- Add clean-coverage and coverage-report make targets
- Update travis to run unit and integration tests, then generate
   coverage report.
- Remove unnecessary suite_test.go
@qu1queee
Copy link
Contributor

qu1queee commented Feb 9, 2021

@adambkaplan can we close this one?

@adambkaplan
Copy link
Member Author

/close

@openshift-ci-robot
Copy link

@adambkaplan: Closed this PR.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants