Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.

Adds unit test target in Makefile#27

Merged
openshift-merge-robot merged 1 commit intomasterfrom
makefile
Jul 16, 2019
Merged

Adds unit test target in Makefile#27
openshift-merge-robot merged 1 commit intomasterfrom
makefile

Conversation

@navidshaikh
Copy link
Copy Markdown

only builds binary in e2e tests

 only builds binary in e2e tests
@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 16, 2019
@navidshaikh
Copy link
Copy Markdown
Author

/assign @rhuss

Copy link
Copy Markdown

@rhuss rhuss left a comment

Choose a reason for hiding this comment

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

looks good to me, but maybe we can add check for the generated files, too ?

Comment thread Makefile

build:
./hack/build.sh
./hack/build.sh -f
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe we should add somewhere a build.sh --codegen as this will do the formatting/doc gen/license check ?

Not sure whether this is the proper place.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I expect this to happen upstream only, given the resource constraints in CI, I am hoping we do only two operations in OpenShift CI which are relevant

  1. build the binary
  2. Run e2e tests against openshift
    thats it.

Comment thread Makefile
.PHONY: build

test-unit:
go test -v ./pkg/...
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

good for now, but I can also add teh semantics of build.sh --test to run only tests when given alone.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I was thinking same, we need a way only run tests.

@rhuss
Copy link
Copy Markdown

rhuss commented Jul 16, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 16, 2019
@openshift-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: navidshaikh, rhuss

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

The pull request process is described here

Details 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-merge-robot openshift-merge-robot merged commit 5d6ea55 into master Jul 16, 2019
@navidshaikh navidshaikh deleted the makefile branch July 16, 2019 11:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants