Skip to content

jasmine.log output disappears #45

bimargulies opened this Issue Nov 2, 2011 · 5 comments

4 participants


I can't see the results of jasmine.log at all. Not in mvn -X, not in log4j, not in any of the outputs of target/jasmine.

searls commented Jan 11, 2012

Thanks for pointing this out. I wasn't aware that jasmine.log even existed. If you'd consider adding support in a pull request, I'd be happy to pull it in.

In the meantime, I'd imagine most of the situations in which I'd want to log output, I'd be actively developing code, so I'd suggest doing that with the jasmine:bdd command & a browser (which presumably show the output).

ivarni commented May 17, 2012

Is there another way around it?

I currently have a test that runs green with jasmine:bdd in the browser but fails during mvn install. It uses sinon.js fakeTimers to alter the global Date object and I suspect that has something to do with it. But to investigate any further I'd really need to either debug or "poor man debug" with logging while the test runs outside the browser. If there's some easy way to get logging to work I could dig into it and try to find out what's going wrong.

searls commented May 18, 2012

@ivarni I'm probably not going to work on this issue anytime soon, but I'd recommend you try faking time differently. Maybe wrap Date in an abstraction you own and fake that abstraction, or use another time faking library like Timecop.js

ivarni commented May 18, 2012

Yes, that seems to work. I guess the problem is with sinon.js on HtmlUnitDriver but either way I'm happy to use Timecop and that removed my current need for logging. I'm just leaving this comment here in case other people stumble upon similar problems and I won't derail this issue further.

klieber commented Jan 13, 2016

Closing this issue because it hasn't been active in over 3 years. If this is still an issue with the current version of the plugin please add a comment with the latest information on the issue and I will reopen it.

@klieber klieber closed this Jan 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.