metarhia/jstp

Missing required info in test output

belochub opened this issue · 0 comments

At the moment test cases don't provide any information about failing test aside from the exception which occurred in the test which makes fixing failing test cases impossible.
Example:

$ node test/node/serde.js 
TAP version 13
ok 1 - must serialize true
ok 2 - must serialize false
ok 3 - must serialize integer
ok 4 - must serialize negative integer
ok 5 - must serialize float
ok 6 - must serialize float with comma
ok 7 - must serialize small float
ok 8 - must serialize undefined
ok 9 - must serialize null
ok 10 - must serialize string
ok 11 - must serialize string with endline
ok 12 - must serialize string with single quote
ok 13 - must serialize string with Unicode escape sequences
ok 14 - must serialize empty array
ok 15 - must serialize array of integers
ok 16 - must serialize nested arrays
ok 17 - must serialize empty object
ok 18 - must serialize object
ok 19 - must serialize Marcus array
ok 20 - must serialize Marcus object
ok 21 - must serialize sparse arrays
ok 22 - must serialize object omitting undefined fields
ok 23 - must serialize object omitting functions
ok 24 - must serialize object with non-identifier keys
ok 25 - must deserialize true
ok 26 - must deserialize false
ok 27 - must deserialize integer
ok 28 - must deserialize negative integer
ok 29 - must deserialize float
ok 30 - must deserialize float with comma
ok 31 - must deserialize small float
ok 32 - must deserialize undefined
ok 33 - must deserialize null
ok 34 - must deserialize string
ok 35 - must deserialize string with endline
ok 36 - must deserialize string with single quote
ok 37 - must deserialize string with Unicode escape sequences
ok 38 - must deserialize empty array
ok 39 - must deserialize array of integers
ok 40 - must deserialize nested arrays
ok 41 - must deserialize empty object
ok 42 - must deserialize object
ok 43 - must deserialize Marcus array
ok 44 - must deserialize Marcus object
not ok 45 - Invalid type in object
  ---
  at:
    native: true
    function: TypeError
  stack: |
    TypeError (native)
    testCases.serde.concat.forEach (test/node/serde.js:15:23)
    Array.forEach (native)
    Object.<anonymous> (test/node/serde.js:14:51)
  type: TypeError
  test: TAP
  ...

1..45
# failed 1 of 45 tests
# time=24.094ms