azer / prova

Test runner based on Tape and Browserify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

browser tests do not show console.log statements

joeybaker opened this issue · comments

When running prova in a browser, console.log statements do not show anywhere. They're really handy to have for debugging purposes.

It should be something else causing that, Prova doesn't touch console at all

hmmm… maybe I miscommunicated? When running prova via prova -b -l chrome -e and putting a console.log statement in a test, the log statements do not show up in the terminal nor in the browser console. Is that expected behavior?

could you try it with a empty test file like following;

console.log('foo')

var test = require('prova')

Nifty. Partially my fault.

console.log('foo')

var test = require('prova')

test('test', function(t){
  console.log('bar')
  t.end()
})

Does output in the browser console. However, it would be great to see it in the CLI as well.

the tap stuff also goes through the console log and that is filtered by default to just show relevant stuff, use the -p to see the full tap output with the console.logs.

-p --tap options don't work in the browser though, (or may be they work but I haven't tried)

@calvinmetcalf @joeybaker 2.0.2 adds this feature

screenshot:

@azer I finally got around to trying this but it doesn't seem to work for me :( Any tips?