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

Modify command in initializing unit tests #261

Merged
merged 1 commit into from
Nov 1, 2016

Conversation

cdrage
Copy link
Member

@cdrage cdrage commented Oct 31, 2016

This cleans up the current script we have to a simple one-liner to test
unit tests.

for dir in $TEST_DIRS; do
go test "${TEST_FLAGS[@]}" "./${dir}"
done
go test -race -cover -v $( go list github.com/kubernetes-incubator/kompose/... | grep -v '/vendor/' )
Copy link
Member

Choose a reason for hiding this comment

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

This looks much cleaner. To be honest I don't know why it was done using find. All other projects that I've looked at are also using find.
Lets try this and see what it will do ;-)

I would do just one change. To make sure same flags are used for tests and build. Can you add BUILD_FLAGS from .build?

@cdrage cdrage force-pushed the add-unit-test-coverage-command branch from f29709f to 8787006 Compare October 31, 2016 20:31
@cdrage
Copy link
Member Author

cdrage commented Oct 31, 2016

@kadel updated!

This cleans up the current script we have to a simple one-liner to test
unit tests.
Copy link
Member

@kadel kadel left a comment

Choose a reason for hiding this comment

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

Thank you @cdrage

@kadel kadel merged commit 52b5235 into kubernetes:master Nov 1, 2016
@cdrage cdrage deleted the add-unit-test-coverage-command branch March 30, 2017 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants