-
-
Notifications
You must be signed in to change notification settings - Fork 37
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 output to a file #2
Comments
Maybe this would work? https://www.npmjs.com/package/reporter-file You can specify the "reporter-file" reporter for |
thanks @aldeed for your reply
I got this error |
@ayhid I haven't tried, but the way I read the docs, the command should be:
And you can also add MOCHA_REPORTER_FILE=something.xml if you don't want the default filename of I you just want xunit file, you could also use https://www.npmjs.com/package/xunit-file package and then |
@aldeed I tried the command you suggested but I still have |
OK, I wasn't sure. We can accept a PR for this or look into it when there's time. |
added
I finally got my report on a file. |
@aldeed thanks for this package! It seems to work fine for standard console output which is a big step up for us as spacejam has been broken for us for quite a while. We too are interested in using an xunit file reporter as we have xunit parsers in our CI environment. I've read through your discussion above and tried a number of things but cannot seem to get the underlying practicalmeteor:mocha-core to see the new reporter. @ayhid would you mind describing further how you added xunit-file as a dependency for practicalmeteor:mocha-core? Did you actually clone the repo locally and add the dependency to the package.js file? I am doing package testing and am pulling dispatch:mocha-phantomjs in as a test dependency in our project. I'm not sure how to add the said dependency outside cloning the repo and modifying it. Not an ideal solution but if thats what it takes... |
hey @jeffryan , like you said I just added the package to my fork dependecies. And I added it locally as a submodule, it's not the cleanest solution ever, but it does the job for now. |
Hey thanks @ayhid - I'm just going to use your fork then ;) |
Hello, i am concerned about Continus Integration, and I also failed to get a xunit file. but I dont know how to apply your solution, I mean pratically. Is it possible that you add some explanations ? Thanks. |
Hi guys, can you please post an update on this? Any news? I am trying to output a CircleCi compatible xml, but am getting a This is a more detailed description of my usecase https://forums.meteor.com/t/enhanced-but-simply-stupid-circleci-setup-that-first-runs-unit-integration-tests-and-then-chimp-acceptance-tests/35086 Thanks a lot for your help! |
ok this is what worked out for me:
@aldeed : How about getting a CircleCi-compatible reporter build right into this package to make it easy for future users? |
@thebarty Just published 0.3.0, which should let you do |
I am trying to use circle ci with my meteor app, however I need the reporter to write its output to a file, any clues how to accomplish this?
Thanks
The text was updated successfully, but these errors were encountered: