ryanmcgrath / wrench-js

Recursive file operations in Node.js
MIT License
435 stars 71 forks source link

Failing npm test on Windows 8.1 #82

Open coreybutler opened 10 years ago

coreybutler commented 10 years ago

This doesn't actually affect me, but while troubleshooting other issues, I ran npm test on my Windows 8.1 box, which had several failures... thought you'd like to know:

C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench>npm test

> wrench@1.5.7 test C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench
> nodeunit tests/runner.js

runner.js
✔ group_mkdir - test_mkdirSyncRecursive
✔ group_readdir - test_readdirSyncRecursive
✔ group_readdir - test_readdirRecursive
✔ group_readdir - test_readdirRecursiveWithNonExistentDirectory
✔ group_copydir - test_copyDirSyncRecursiveWithoutOptions
✔ group_copydir - test_copyDirSyncRecursiveHidden
✔ group_copydir - test_copyDirSyncRecursiveShown
✖ group_copydir - test_copyDirSyncRecursiveInflate

AssertionError: [ 'test' ] deepEqual [ '.hidden', 'bar.txt', 'test', '.hidden\\dolor.md' ]
    at Object.deepEqual (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modul
    at checkResultInflate (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\tests\co
    at Object.module.exports.testCase.test_copyDirSyncRecursiveInflate (C:\Users\Corey\Documents\workspace
_unix.js:146:9)
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at Object.exports.runTest (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\deps\a
    at iterate (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeun

Error: ENOENT, no such file or directory 'C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\
    at Object.fs.lstatSync (fs.js:679:18)
    at checkResultInflate (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\tests\co
    at Object.module.exports.testCase.test_copyDirSyncRecursiveInflate (C:\Users\Corey\Documents\workspace
_unix.js:146:9)
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at Object.exports.runTest (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\deps\a
    at iterate (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeun

✖ group_copydir - test_copyDirSyncRecursiveInflateAbsoluteSymlinks

AssertionError:
[ 'absolute-bar.txt', 'test' ]
deepEqual
[ '.hidden',
  'absolute-bar.txt',
  'bar.txt',
  'test',
  '.hidden\\dolor.md' ]
    at Object.deepEqual (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modul
    at checkResultInflateAbsolute (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\
    at Object.module.exports.testCase.test_copyDirSyncRecursiveInflateAbsoluteSymlinks (C:\Users\Corey\Doc
ests\copydirsync_unix.js:166:9)
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at Object.exports.runTest (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\deps\a
    at iterate (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeun

Error: ENOENT, no such file or directory 'C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\
    at Object.fs.lstatSync (fs.js:679:18)
    at checkResultInflateAbsolute (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\
    at Object.module.exports.testCase.test_copyDirSyncRecursiveInflateAbsoluteSymlinks (C:\Users\Corey\Doc
ests\copydirsync_unix.js:166:9)
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at Object.exports.runTest (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\deps\a
    at iterate (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeun

✖ group_copydir - test_copyDirSyncRecursiveDontInflate

AssertionError: [ 'absolute-bar.txt', 'test' ] deepEqual [ '.hidden', 'bar.txt', 'test', '.hidden\\dolor.m
    at Object.deepEqual (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modul
    at checkResultDontInflate (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\test
    at Object.module.exports.testCase.test_copyDirSyncRecursiveDontInflate (C:\Users\Corey\Documents\works
sync_unix.js:183:9)
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at Object.exports.runTest (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\deps\a
    at iterate (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeun

Error: ENOENT, no such file or directory 'C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\
    at Object.fs.lstatSync (fs.js:679:18)
    at checkResultDontInflate (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\test
    at Object.module.exports.testCase.test_copyDirSyncRecursiveDontInflate (C:\Users\Corey\Documents\works
sync_unix.js:183:9)
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at Object.<anonymous> (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_mod
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at Object.exports.runTest (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\lib\co
    at C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeunit\deps\a
    at iterate (C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench\node_modules\nodeun

✔ group_copydir - test_copyDirSyncRecursivePreserveFiles
✔ group_copydir - test_copyDirSyncRecursiveOverwriteFiles
✔ group_rmdir - test_rmdirSyncRecursive
✔ group_rmdir - test_rmdirSyncRecursiveFromRoot

FAILURES: 6/45 assertions failed (475ms)
npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

C:\Users\Corey\Documents\workspace\NGN\Library\ngn\node_modules\wrench>
saintedlama commented 10 years ago

Same situation here on my windows 7 box