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

reporter-specific options and support for the xunit reporter to output to a file (#2) #1218

Merged
merged 3 commits into from
Dec 15, 2014

Conversation

demmer
Copy link
Contributor

@demmer demmer commented May 17, 2014

(Rework of #1106 to merge cleanly onto master and to address PR comments.)

Support for generic reporter options and an optional .done() hook for reporters
to clean up before exiting.

The xunit reporter uses these hooks to optionally write output to a file when run
in node. By default it still uses console.log to keep support for running in browser.

@demmer
Copy link
Contributor Author

demmer commented May 20, 2014

@travisjeffery I believe I've addressed all your comments from the other PR. Are there any other concerns?

If not can you please merge this, and I'd also appreciate if you could push a new release that contains the change.

@rmg
Copy link

rmg commented May 22, 2014

Code looks straight forward to me, FWIW.

I also happen to be using it on my CI setup, so I'm somewhat biased in wanting to see it upstream so I don't have to maintain a fork.

@crocket
Copy link

crocket commented Jun 2, 2014

I've waited for this. Please merge it.

@demmer
Copy link
Contributor Author

demmer commented Jun 13, 2014

@travisjeffery, @visionmedia If for some reason you don't want to take this whole change, how about just taking commit 6acbc7f which adds the .done support for the reporter? With that at least I could use my own xunit reporter to get the file output support, and others could do similarly.

@tunnckoCore
Copy link

This with reporter-specific options would be great - it is must. I also plan to develop benchmark reporter and this will help me.

@demmer
Copy link
Contributor Author

demmer commented Jul 12, 2014

Rebased on top of the latest master to fix merge conflicts.

Any updates from the maintainers as to what if anything is holding up merge? @travisjeffery I thought I addressed all of your concerns back in May.

@jbnicolai
Copy link

@demmer the new maintainers are just cautiously working their way through the issues and pull requests. Thanks for the rebase and the bump - I'll look at this shortly 😄

@travisjeffery
Copy link
Contributor

ya i have a branch where i made some changes, lemme see if i can dig that up and merge it

@demmer
Copy link
Contributor Author

demmer commented Jul 12, 2014

Thanks!

On Sat, Jul 12, 2014 at 1:51 PM, Travis Jeffery [email protected]
wrote:

ya i have a branch where i made some changes, lemme see if i can dig that
up and merge it


Reply to this email directly or view it on GitHub
#1218 (comment).

Michael Demmer
Jut - VP Engineering
[email protected]

@crocket
Copy link

crocket commented Jul 16, 2014

It's been months since this pull request was submitted.
How to control reporter options programmatically should be documented.
Other than lack of documentation, it seems good to go.
Can anyone just merge it?

@kri5
Copy link

kri5 commented Jul 23, 2014

👍

2 similar comments
@tunnckoCore
Copy link

👍

@elkwood
Copy link

elkwood commented Aug 5, 2014

👍

@demmer
Copy link
Contributor Author

demmer commented Aug 26, 2014

@travisjeffery Another couple of months have gone by so I'd like to bump this once again. Again is there anything that is holding up this merge? You mentioned that you had "made some changes".

@abstratt
Copy link

abstratt commented Sep 3, 2014

Looking forward to seeing this integrated. Had to remove all logging in my code so I could generate valid XUnit output with mocha.

@kri5
Copy link

kri5 commented Sep 3, 2014

👍

@ngerakines
Copy link

Any update on this? Would love to see this merged in and made available.

@bleadof
Copy link

bleadof commented Sep 25, 2014

👍

@demmer demmer mentioned this pull request Oct 7, 2014
@barneycarroll
Copy link

👍

This is a basic necessity for our CI. Without this, I can run my tests on my own and tell the rest of the world I'm happy with my code but I can't convince our pipeline this is the case. @demmer 's put the work in of plugging this in a couple of times and has rebased to deal with the wait. Travis CI passes! Can't somebody just click 'accept'?

@tunnckoCore
Copy link

Mm yep.. Months waiting..

@bleadof
Copy link

bleadof commented Oct 16, 2014

Seriously, I'm at this point 😢

@boneskull
Copy link
Contributor

@travisjeffery if you have a branch w your changes somewhere I can take care of this.

@elkwood
Copy link

elkwood commented Oct 17, 2014

You should be able to merge this pull request if I'm not mistaken. https://help.github.com/articles/merging-a-pull-request/

@boneskull boneskull added the status: waiting for author waiting on response from OP - more information needed label Oct 17, 2014
travisjeffery pushed a commit that referenced this pull request Dec 15, 2014
reporter-specific options and support for the xunit reporter to output to a file (#2)
@travisjeffery travisjeffery merged commit 81d6b94 into mochajs:master Dec 15, 2014
@boneskull boneskull removed the status: waiting for author waiting on response from OP - more information needed label Dec 12, 2017
wking added a commit to wking/tap-mocha-reporter that referenced this pull request Jun 7, 2018
Catching up with mochajs/mocha@30582e64 (if a reporter has a .done
method, call it before exiting, 2014-05-17, mochajs/mocha#1218).
wking added a commit to wking/tap-mocha-reporter that referenced this pull request Jun 8, 2018
Catching up with mochajs/mocha@30582e64 (if a reporter has a .done
method, call it before exiting, 2014-05-17, mochajs/mocha#1218).
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.