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

Plans to include reporting output to junit/xunit files? #22

Closed
bricejlin opened this issue Jun 19, 2016 · 3 comments
Closed

Plans to include reporting output to junit/xunit files? #22

bricejlin opened this issue Jun 19, 2016 · 3 comments

Comments

@bricejlin
Copy link

A lot of CI runners look for this file format :)

@aldeed
Copy link
Contributor

aldeed commented Jun 23, 2016

See my suggestion here: Meteor-Community-Packages/meteor-mocha#2 (comment)

@chriswessells
Copy link

I tried the solution and was unable to get an output file. I even followed ayhid's hack and was unsuccessful. I was unable to get any thing to output to a file.

As per https://www.npmjs.com/package/mocha-phantomjs I tried all the reporter formats and found the following:
I was albe to verify the reporter formats output to the console correctly.
dot - client and server
min - server
nyan - server
list - client and server
doc - client and server
teamcity - fail
json - client and server
json-cov - client and server
xunit - client and server
progress - client and server
landing - server
markdown - client and server

I added ayhid's meteor-mocha-core to my packages directory and added another dependency for reporter-file as a dependency after xunit-file.

I tried setting all the environment variables and was not able to generate a file. I am in DevOps so getting this information is critical. I have tried to grep or sed the output, or output to file via > but have not been successful. If someone could point me to where the in the code I can capture the stdout I can find a way to write it to a file.

@aldeed
Copy link
Contributor

aldeed commented Feb 17, 2017

Closing since this repo is being replaced by the updated dispatch:mocha. This can be tracked in the linked issue in that repo.

@aldeed aldeed closed this as completed Feb 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants