Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Console.log is not working in Qunit tests with grunt server

I am creating Qunit tests which are running on grunt server. In the test when I am trying to use "console.log" to log some output to the console, it is not printing anything in the console. Currently I am able to use only OK to perform the assertions.

Please give your inputs.

like image 824
user3153227 Avatar asked Jan 02 '14 10:01

user3153227


1 Answers

If you are using the qunit task in grunt, you need to start the task with --debug (i.e. grunt test --debug). You will then see phantom logs printing out your console logs in the following format:

[D] ["phantomjs","console","MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"]

See documentation

like image 166
Alamgir Mand Avatar answered Sep 20 '22 13:09

Alamgir Mand