jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Expected vs actual not being display in QUnit tests #225

Closed cwick closed 9 years ago

cwick commented 10 years ago

The teaspoon test runner doesn't show me expected vs actual results for this simple test:

module("Teaspoon test")

test "Expected vs actual", ->
  equal "foo", "bar"

Here is what Teaspoon outputs: screen shot 2014-05-12 at 5 53 35 pm

And here is what the test runner that comes built-in to QUnit looks like: screen shot 2014-05-12 at 5 44 05 pm

Is Teaspoon supposed to show expected vs actual, or am I doing something wrong?

jejacks0n commented 10 years ago

The exception you're seeing is that "equal" isn't defined. tried "equals"? if it's not that, I'm unsure.

jejacks0n commented 10 years ago

qunit is the bastard child of teaspoon, and there's some work on that to get it better.

cwick commented 10 years ago

no, equal is defined. Teaspoon is printing the value of the third argument to equal, which, in this example is undefined. Pass in a message as the third argument and you'll see that instead.

mikepack commented 9 years ago

Closing. Addressed in #316.