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

logs during test runs / jasmine-node compatability #217

Closed
dcsan opened this issue Aug 31, 2015 · 1 comment
Closed

logs during test runs / jasmine-node compatability #217

dcsan opened this issue Aug 31, 2015 · 1 comment

Comments

@dcsan
Copy link

dcsan commented Aug 31, 2015

i'm using jasmine-node and trying to use logs to debug some of my tests, however they don't seem to be output anywhere...

since jasmine-node is not a normal node app, is there some config that is not being set?

I also tried sending errors/output to stderr and using 3> to try and capture it but without luck.

I added this to the top of a test suite and

var debug = require("debug") 
var error = debug('mbot:error');
var log = debug('mbot:log');

// set this namespace to log via console.log
log.log = console.log.bind(console); // don't forget to bind to console!
log('goes to stdout');
error("ERROR")

and running it with:

DEBUG="mbot:*" jasmine-node --color $FILE --watch --autotest 3> logs/test.log

without anything showing up either during test runs or in test.log

any other methods to get this working? dont wanna have to go back to console.log!

@dcsan dcsan changed the title getting logs during test runs? logs during test runs / jasmine-node compatability Aug 31, 2015
@thebigredgeek
Copy link
Contributor

Not sure why you'd want to do this. Closing for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants