Skip to content

How to stream the htmlextra progress bar into a GUI? #406

Answered by DannyDainton
DavidAccola asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm...I'm not actually sure how I did that now :D I think I also put it behind a flag because there were some occasions where it was repeated or it didn't render correctly when used with other reporters.

I tried to copy what the -r progress reporter was doing but it's a horrible piece that I'm not proud of.

    if (options.displayProgressBar) {
        // Add progress feedback for the reporter
        if (_.includes(collectionRunOptions.reporters, 'cli') || _.get(collectionRunOptions.reporter, 'cli') || _.includes(collectionRunOptions.reporters, 'json') || _.get(collectionRunOptions.reporter, 'json') || _.includes(collectionRunOptions.reporters, 'progress') || _.get(collectionRunOptions.r…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DavidAccola
Comment options

Answer selected by DavidAccola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants