istanbul test hangs #5

Closed
davglass opened this Issue Oct 12, 2012 · 2 comments

Projects

None yet

2 participants

@davglass
Collaborator

I tried using istanbul test in one of my smaller projects and when it executes the tests it reports all 30 are honored, but it just hangs at that point and never exits:

https://github.com/davglass/echoecho

@gotwarlost
Owner

I could not reproduce this. I see a delay before it comes back to the command line but no hang. Could you show me how to reproduce?

$ git clone https://github.com/davglass/echoecho.git
Cloning into echoecho...
remote: Counting objects: 71, done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 71 (delta 32), reused 71 (delta 32)
Unpacking objects: 100% (71/71), done.
$ cd echoecho/
$ npm install
npm http GET http://registry.npmjs.org/vows
npm http GET http://registry.npmjs.org/yui-lint
npm http GET http://registry.npmjs.org/jshint
npm http 304 http://registry.npmjs.org/jshint
npm http 304 http://registry.npmjs.org/yui-lint
npm http 304 http://registry.npmjs.org/vows
npm http GET http://registry.npmjs.org/cli/0.4.3
npm http GET http://registry.npmjs.org/eyes
npm http GET http://registry.npmjs.org/diff
npm http GET http://registry.npmjs.org/minimatch
npm http 304 http://registry.npmjs.org/cli/0.4.3
npm http 304 http://registry.npmjs.org/diff
npm http 304 http://registry.npmjs.org/eyes
npm http 304 http://registry.npmjs.org/minimatch
npm http GET http://registry.npmjs.org/lru-cache
npm http GET http://registry.npmjs.org/glob
npm http 304 http://registry.npmjs.org/lru-cache
npm http 304 http://registry.npmjs.org/glob
npm http GET http://registry.npmjs.org/minimatch
npm http GET http://registry.npmjs.org/inherits
npm http GET http://registry.npmjs.org/graceful-fs
npm http 304 http://registry.npmjs.org/minimatch
npm http 304 http://registry.npmjs.org/inherits
npm http 304 http://registry.npmjs.org/graceful-fs
npm http GET http://registry.npmjs.org/lru-cache
npm http 304 http://registry.npmjs.org/lru-cache
npm WARN prefer global jshint@0.9.1 should be installed with -g
yui-lint@0.1.1 ./node_modules/yui-lint
vows@0.6.4 ./node_modules/vows
├── eyes@0.1.8
└── diff@1.0.3
jshint@0.9.1 ./node_modules/jshint
├── minimatch@0.0.5 (lru-cache@1.0.6)
└── cli@0.4.3
$ istanbul cover ./node_modules/vows/bin/vows -- --spec ./tests/*js

  ♢ echoecho

  should be loaded
    ✓ and have load method
    ✓ and have handle method
    ✓ and have serve method
    ✓ and have paths method
    ✓ and have scheme object
    ✓ and have BASE object
  should be loaded and should load paths
    ✓ and has 3 paths
    ✓ and removes .html
    ✓ and removes trailing slash
    ✓ and handles no trailing slash
  should be loaded and should load paths and default response
    ✓ should be returned
  should be loaded and should load paths and get status 200
    ✓ with OK body
  should be loaded and should load paths and get status 404
    ✓ with Not Found body
  should be loaded and should load paths and get query
    ✓ with query body
  should be loaded and should load paths and get mismatch
    ✓ with query body
  should be loaded and should load paths and post
    ✓ with query body
  should be loaded and should load paths and post mismatch
    ✓ with query body
  should be loaded and should load paths and delete
    ✓ with query body
  should be loaded and should load paths and delete mismatch
    ✓ with query body
  should be loaded and should load paths and put
    ✓ with query body
  should be loaded and should load paths and put mismatch
    ✓ with query body
  should be loaded and should load paths and get default json
    ✓ with query body
  should be loaded and should load paths and post default json
    ✓ with query body
  should be loaded and should load paths and get custom json
    ✓ with query body
  should be loaded and should load paths and post custom json
    ✓ with query body
  should be loaded and should load paths and get default jsonp
    ✓ with query body
  should be loaded and should load paths and post default jsonp
    ✓ with query body
  should be loaded and should load paths and get custom jsonp
    ✓ with query body
  should be loaded and should load paths and post custom jsonp
    ✓ with query body
  should be loaded and should load paths and delay 3 seconds
    ✓ with query body

✓ OK » 30 honored (3.040s)

=============================================================================
Writing coverage object [/Users/ananthk/code/echoecho/coverage/coverage.json]
Writing coverage reports at [/Users/ananthk/code/echoecho/coverage]
=============================================================================
$ istanbul test ./node_modules/vows/bin/vows -- --spec ./tests/*js

  ♢ echoecho

  should be loaded
    ✓ and have load method
    ✓ and have handle method
    ✓ and have serve method
    ✓ and have paths method
    ✓ and have scheme object
    ✓ and have BASE object
  should be loaded and should load paths
    ✓ and has 3 paths
    ✓ and removes .html
    ✓ and removes trailing slash
    ✓ and handles no trailing slash
  should be loaded and should load paths and default response
    ✓ should be returned
  should be loaded and should load paths and get status 200
    ✓ with OK body
  should be loaded and should load paths and get status 404
    ✓ with Not Found body
  should be loaded and should load paths and get query
    ✓ with query body
  should be loaded and should load paths and get mismatch
    ✓ with query body
  should be loaded and should load paths and post
    ✓ with query body
  should be loaded and should load paths and post mismatch
    ✓ with query body
  should be loaded and should load paths and delete
    ✓ with query body
  should be loaded and should load paths and delete mismatch
    ✓ with query body
  should be loaded and should load paths and put
    ✓ with query body
  should be loaded and should load paths and put mismatch
    ✓ with query body
  should be loaded and should load paths and get default json
    ✓ with query body
  should be loaded and should load paths and post default json
    ✓ with query body
  should be loaded and should load paths and get custom json
    ✓ with query body
  should be loaded and should load paths and post custom json
    ✓ with query body
  should be loaded and should load paths and get default jsonp
    ✓ with query body
  should be loaded and should load paths and post default jsonp
    ✓ with query body
  should be loaded and should load paths and get custom jsonp
    ✓ with query body
  should be loaded and should load paths and post custom jsonp
    ✓ with query body
  should be loaded and should load paths and delay 3 seconds
    ✓ with query body

✓ OK » 30 honored (3.049s)

$
@davglass
Collaborator

I was using an older version of istanbul, it seems to work now.. Thanks

@davglass davglass closed this Oct 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment