Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Show test results in console in case browser supports it. #44

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
2 participants

eeroan commented Jan 11, 2011

Benefits

  • Printing actual and expected values to console helps comparing them because of DOM browser.
  • Line breaks and multiple white spaces can be spotted more easily when the results are unformatted.
  • Console stack trace shows the line number of the failing test and production code, wich is also navigable.
  • Nothing will fail in case browser doesn't support console.
Contributor

infews commented Jan 28, 2011

I think this code would be better suited to a separate console reporter. The TrivialReporter is intended to be an example, not the catch all.

We support multiple reporters for a suite, so having a ConsoleReporter - take a look at the jasmine.log function - available for folks is an interesting option.

Test-drive this reporter object and throw it up on the mailing list to see if folks like it.

This issue was closed.

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