Skip to content

Instantly share code, notes, and snippets.

@shama
Created August 7, 2012 00:28
Show Gist options
  • Save shama/3279941 to your computer and use it in GitHub Desktop.
Save shama/3279941 to your computer and use it in GitHub Desktop.
grunt windows test fails
Welcome to Git (version 1.7.11-preview20120710)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
Kyle@OFFICE-WIN ~
$ cd Documents/grunt
Kyle@OFFICE-WIN ~/Documents/grunt (devel)
$ git checkout win-tests
Switched to branch 'win-tests'
Your branch and 'origin/win-tests' have diverged,
and have 3 and 1 different commit each, respectively.
Kyle@OFFICE-WIN ~/Documents/grunt (win-tests)
$ git pull --rebase upstream devel
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 10 (delta 6), reused 9 (delta 5)
Unpacking objects: 100% (10/10), done.
From git://github.com/cowboy/grunt
* branch devel -> FETCH_HEAD
First, rewinding head to replay your work on top of it...
Applying: Normalize linefeeds for testing on Windows
Kyle@OFFICE-WIN ~/Documents/grunt (win-tests)
$ grunt
Running "lint:all" (lint) task
>> 46 files lint free.
Running "test:all" (test) task
Testing event_test.js.OK
Testing file_test.js.........................FFFF..
>> file - exists
>> AssertionMessage: file links exist.
>> AssertionError file links exist.
>> at Object.assertWrapper [as ok] (c:\Users\Kyle\Documents\grunt\node_modules
\nodeunit\lib\types.js:83:39)
>> at Object.exports.file.exists (c:\Users\Kyle\Documents\grunt\test\grunt\fil
e_test.js:311:10)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib\core.j
s:235:16)
>> at Object.exports.runTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeu
nit\lib\core.js:69:9)
>> at exports.runSuite (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\li
b\core.js:117:25)
>> at _concat (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\deps\async.
js:508:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:118:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:129:25)
>> file - exists
>> AssertionMessage: directory links exist.
>> AssertionError directory links exist.
>> at Object.assertWrapper [as ok] (c:\Users\Kyle\Documents\grunt\node_modules
\nodeunit\lib\types.js:83:39)
>> at Object.exports.file.exists (c:\Users\Kyle\Documents\grunt\test\grunt\fil
e_test.js:312:10)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib\core.j
s:235:16)
>> at Object.exports.runTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeu
nit\lib\core.js:69:9)
>> at exports.runSuite (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\li
b\core.js:117:25)
>> at _concat (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\deps\async.
js:508:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:118:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:129:25)
>> file - isLink
>> AssertionMessage: file links are links.
>> AssertionError file links are links.
>> at Object.assertWrapper [as ok] (c:\Users\Kyle\Documents\grunt\node_modules
\nodeunit\lib\types.js:83:39)
>> at Object.exports.file.isLink (c:\Users\Kyle\Documents\grunt\test\grunt\fil
e_test.js:320:10)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib\core.j
s:235:16)
>> at Object.exports.runTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeu
nit\lib\core.js:69:9)
>> at exports.runSuite (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\li
b\core.js:117:25)
>> at _concat (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\deps\async.
js:508:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:118:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:129:25)
>> file - isLink
>> AssertionMessage: directory links are links.
>> AssertionError directory links are links.
>> at Object.assertWrapper [as ok] (c:\Users\Kyle\Documents\grunt\node_modules
\nodeunit\lib\types.js:83:39)
>> at Object.exports.file.isLink (c:\Users\Kyle\Documents\grunt\test\grunt\fil
e_test.js:321:10)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib\core.j
s:235:16)
>> at Object.exports.runTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeu
nit\lib\core.js:69:9)
>> at exports.runSuite (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\li
b\core.js:117:25)
>> at _concat (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\deps\async.
js:508:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:118:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:129:25)
>> file - isLink
>> AssertionMessage: should work for paths in parts.
>> AssertionError should work for paths in parts.
>> at Object.assertWrapper [as ok] (c:\Users\Kyle\Documents\grunt\node_modules
\nodeunit\lib\types.js:83:39)
>> at Object.exports.file.isLink (c:\Users\Kyle\Documents\grunt\test\grunt\fil
e_test.js:322:10)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib\core.j
s:235:16)
>> at Object.exports.runTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeu
nit\lib\core.js:69:9)
>> at exports.runSuite (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\li
b\core.js:117:25)
>> at _concat (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\deps\async.
js:508:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:118:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:129:25)
>> file - isDir
>> AssertionMessage: directory links are directories.
>> AssertionError directory links are directories.
>> at Object.assertWrapper [as ok] (c:\Users\Kyle\Documents\grunt\node_modules
\nodeunit\lib\types.js:83:39)
>> at Object.exports.file.isDir (c:\Users\Kyle\Documents\grunt\test\grunt\file
_test.js:332:10)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib\core.j
s:235:16)
>> at Object.exports.runTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeu
nit\lib\core.js:69:9)
>> at exports.runSuite (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\li
b\core.js:117:25)
>> at _concat (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\deps\async.
js:508:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:118:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:129:25)
>> file - isFile
>> AssertionMessage: file links are files.
>> AssertionError file links are files.
>> at Object.assertWrapper [as ok] (c:\Users\Kyle\Documents\grunt\node_modules
\nodeunit\lib\types.js:83:39)
>> at Object.exports.file.isFile (c:\Users\Kyle\Documents\grunt\test\grunt\fil
e_test.js:341:10)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at Object.wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib
\core.js:235:16)
>> at wrapTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\lib\core.j
s:235:16)
>> at Object.exports.runTest (c:\Users\Kyle\Documents\grunt\node_modules\nodeu
nit\lib\core.js:69:9)
>> at exports.runSuite (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\li
b\core.js:117:25)
>> at _concat (c:\Users\Kyle\Documents\grunt\node_modules\nodeunit\deps\async.
js:508:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:118:13)
>> at async.forEachSeries.iterate (c:\Users\Kyle\Documents\grunt\node_modules\
nodeunit\deps\async.js:129:25)
Testing log_test.js........OK
Testing task_test.js..OK
Testing template_test.js...OK
Testing util_test.js.......OK
Testing concat_test.js.OK
Testing init_test.js....OK
Testing lint_test.js.OK
Testing min_test.js...OK
Testing misc_test.js......OK
Testing namespace_test.js....OK
Testing task_test.js............................OK
<WARN> 7/371 assertions failed (610ms) Use --force to continue. </WARN>
Aborted due to warnings.
Kyle@OFFICE-WIN ~/Documents/grunt (win-tests)
$ git log
commit b046598e9caa9f2ab23a63633eeddf882e3e948b
Author: Kyle Robinson Young <kyle@dontkry.com>
Date: Mon Aug 6 12:45:19 2012 -0700
Normalize linefeeds for testing on Windows
commit d758396cfa01672d117be2d3c3b84253e91a075b
Author: Ben Alman <cowboy@rj3.net>
Date: Mon Aug 6 21:10:06 2012 -0400
Normalize windows \\ paths to / inside of file.recurse.
commit f15bb104ba21d4b6723e0152f6495cdfb621be13
Author: Ben Alman <cowboy@rj3.net>
Date: Mon Aug 6 20:46:38 2012 -0400
No point in testing file permissions, since Windows can't handle them.
commit bbafbf01b7936340bf2583cd7a89475b16bb43df
Author: Ben Alman <cowboy@rj3.net>
Date: Mon Aug 6 16:53:10 2012 -0400
The file.mkdir method now defaults to 0777 & (~process.umask()). Closes gh-3
Kyle@OFFICE-WIN ~/Documents/grunt (win-tests)
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment