Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Add progress bar for showing entire testing time and current status #3

Merged
merged 3 commits into from
Jun 30, 2020

Conversation

urangurang
Copy link
Contributor

I added a function for show progress bar.
Please review when you have free time.

And one question.
Is directory vendor also needed to be tracked on git?

Thanks

@urangurang urangurang marked this pull request as draft June 25, 2020 02:51
@urangurang urangurang marked this pull request as ready for review June 25, 2020 02:52
@alessfg alessfg linked an issue Jun 26, 2020 that may be closed by this pull request
@alessfg alessfg added the enhancement New feature or request label Jun 26, 2020
@alessfg alessfg self-requested a review June 26, 2020 12:08
@alessfg
Copy link
Collaborator

alessfg commented Jun 26, 2020

Is directory vendor also needed to be tracked on git?

I made the decision early on to include vendors on Git to ensure that everyone cloning the repository has access to the exact same modules 😄

rtapi.go Outdated
@@ -382,6 +395,15 @@ func createPDF(endpoints []endpointDetails, output string) {
os.Stdout.Write([]byte("PDF report generated successfully!\n"))
}

func showProgressBar(sum int) {
os.Stdout.Write([]byte("Total " + strconv.Itoa(sum) + " seconds.\n"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you tweak the Total: etc... output? I'm thinking of something along the lines of rtapi will take X seconds to run might sound a bit better?

@urangurang
Copy link
Contributor Author

I changed the message.(rtapi will take X seconds to run)
And below lines are example of this commit.

➜ rtapi git:(feature/show-progress-bar) ✗ ./build/darwin/rtapi -o ds.pdf -f data.json
rtapi will take 10 seconds to run
7s [=====================================================>--------------] 79%

@alessfg
Copy link
Collaborator

alessfg commented Jun 30, 2020

Thanks! And thanks for your PR @urangurang!

@alessfg alessfg merged commit 81a3044 into nginxinc:master Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request : Show the Progress Bar when application is running
2 participants