running tests failed #1

stdcall opened this Issue Apr 29, 2012 · 1 comment


None yet

2 participants


On node 0.6.15 i get this error output, while running npm test in comsat master:

make -i test                                 master ‹1.9.3-dev›
NODE_PATH=:/home/scriper/proj/comsat/lib /home/scriper/proj/comsat/node_modules/vows/bin/vows test/*.test.js -v --spec
vows bin argv [ 'test/comsat.test.js' ]
vows bin options {
    reporter: 'dot-matrix',
    matcher: /.*/
vows runner loading [ '/home/scriper/proj/comsat/test/comsat.test' ]
vows runner running comsat integration tests  
  ♢ comsat integration tests 

ReplayParser => "error": Error: Traceback (most recent call last):

  Loading an invalid file
    ✓ should give an error
    mpyq#extractReplay  60ms
    mpyq#extractReplay  61ms
    mpyq#extractReplay  62ms
    mpyq#extractReplay  62ms
    mpyq#extractReplay  62ms
    mpyq#extractReplay  62ms
    mpyq#extractReplay  63ms
    mpyq#extractReplay  63ms
    mpyq#extractReplay  70ms
    ReplayParser#_parseHeader readFile  0ms
    headerParser#parse  3ms
ReplayParser => "header"
    Replay#_processHeader  0ms
    ReplayParser#_parseDetails readFile  0ms
    detailsParser#parse  24ms
ReplayParser => "details"
    Replay#_processDetails  1ms
    mpyq#extractReplay  89ms
    ReplayParser#_parseAttributes readFile  2ms
    ReplayParser#_parseHeader readFile  1ms
    attributesParser#parse  1ms
ReplayParser => "attributes"
    Replay#_processAttributes  1ms
    Replay PARTIAL  104ms
    headerParser#parse  3ms
ReplayParser => "header"
    Replay#_processHeader  1ms
    chatParser#parse first chat  2ms
ReplayParser => "chat"
    Replay#_processChat  0ms
ReplayParser => "error": Error: Unknown Initialization event code: 6

        throw arguments[1]; // Unhandled 'error' event
Error: Unknown Initialization event code: 6
    at ActionParser.initialization (/home/scriper/proj/comsat/lib/parsers/actions.js:151:20)
    at ActionParser.parse (/home/scriper/proj/comsat/lib/parsers/actions.js:130:28)
    at ActionsReader._onData (/home/scriper/proj/comsat/lib/parsers/actions.js:79:38)
    at [object Object].<anonymous> (/home/scriper/proj/comsat/lib/parsers/actions.js:34:14)
    at [object Object].<anonymous> (events.js:67:17)
    at [object Object].emit (/home/scriper/proj/comsat/node_modules/vows/lib/vows.js:236:24)
    at [object Object]._emitData (fs.js:1163:10)
    at afterRead (fs.js:1145:10)
    at Object.wrapper [as oncomplete] (fs.js:262:17)
make: [test] Error 1 (ignored)

This is expected atm. I'm working on (albeit slowly due to how little time I have to devote to this right) implementing action parsers for all the various versions of SC2 replays. Currently only versions up to 1.1 parse without errors, and the replay used for the integration test here is later than that. Hopefully I'll have a version up soon that doesn't error out for this, but until then, this test will fail.

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