Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Script to display live output from e2e tests #275

Merged
merged 1 commit into from
Oct 5, 2017

Conversation

ashetty1
Copy link
Collaborator

Currently, when e2e tests are run, the output is displayed only after the test run is complete. This is a known limitation of go tests.

With this simple script, we run make test-e2e and kubectl get po --all-namespaces -w in the background, and terminate the process once the test run is complete, helping us keep a watch on the individual tests while they are being run.

@surajssd
Copy link
Member

@ashetty1 this WFM, please put it under some kind of make statement. Or maybe add this script run under make e2e! So that this becomes the default behavior of the e2e test runs.

@cdrage
Copy link
Collaborator

cdrage commented Sep 20, 2017

@ashetty1 Agreed with @surajssd please add to the Makefile and then it's LGTM 👍

@ashetty1
Copy link
Collaborator Author

@surajssd I don't handle values for PARALLEL in this script. Should I?

@cdrage
Copy link
Collaborator

cdrage commented Sep 29, 2017

@ashetty1 yup, you should, as well as timeout.

@surajssd
Copy link
Member

surajssd commented Oct 3, 2017

@ashetty1 ping on this !

@ashetty1
Copy link
Collaborator Author

ashetty1 commented Oct 3, 2017

@surajssd On it this week. Will push the changes once I have the parallel and timeout stuff ready

@ashetty1
Copy link
Collaborator Author

ashetty1 commented Oct 5, 2017

Sorry for the mess. Pushing the PR now

@ashetty1 ashetty1 reopened this Oct 5, 2017
@ashetty1 ashetty1 changed the title [WIP] Script to display live output from e2e tests Script to display live output from e2e tests Oct 5, 2017
@surajssd
Copy link
Member

surajssd commented Oct 5, 2017

@cdrage is there a way to re-trigger the test?

or maybe @ashetty1 try amending the commit and force pushing the change?

Currently, when e2e tests are run, the output is displayed only
after the test run is complete. This is a known limitation of go tests.

With this simple script, when we run
 `go test -v github.com/kedgeproject/kedge/tests/e2e`, `make test-e2e`
and `kubectl get po --all-namespaces -w` are in the background, and
terminate the kubectl process once the test run is complete,
helping us keep a watch on the individual tests while they are being run.
@cdrage
Copy link
Collaborator

cdrage commented Oct 5, 2017

@surajssd They all pass?

Yup, just amend the commit and force-push and it should re-trigger the tests.

@surajssd
Copy link
Member

surajssd commented Oct 5, 2017

@cdrage this output LGTM, if you don't have any other concern let's merge this one!

@cdrage cdrage merged commit 9ab3f43 into kedgeproject:master Oct 5, 2017
@ashetty1 ashetty1 deleted the e2e_script branch October 9, 2017 04:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants