ini
ini copied to clipboard
Multiple tests failing in Windows
Trace:
$ npm test
> [email protected] test c:\Documents and Settings\apenneba\Desktop\src\ini
> tap test/*.js
total ............................... 0/1
not ok
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
When I drill down into specific tests, I get:
$ tap test/bar.js
not ok test/bar.js ...................................... 3/5
Command: "node" "bar.js"
TAP version 13
not ok 1 should be equivalent
---
file: events.js
line: 92
column: 17
stack:
- getCaller (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-assert\assert.js:370:17)
- assert (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-assert\assert.js:17:16)
- Function.equivalent (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-assert\assert.js:174:10)
- Test._testAssert (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-test\test.js:86:16)
- Test.<anonymous> (c:\Documents and Settings\apenneba\Desktop\src\ini\test\bar.js:19:7)
- Test.EventEmitter.emit (events.js:92:17)
- Test.emit (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-test\test.js:102:8)
- GlobalHarness.Harness.process (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-harness\harness.js:86:13)
- process._tickCallback (node.js:415:13)
- Function.Module.runMain (module.js:499:11)
found:
count: 10
wanted:
count: 10
diff: |
FOUND: {"count":"10"}
WANTED: {"count":10}
^ (at position = 9)
unique: 0
...
ok 2 should be equivalent
ok 3 should be equivalent
not ok 4 should be equivalent
---
file: events.js
line: 92
column: 17
stack:
- getCaller (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-assert\assert.js:370:17)
- assert (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-assert\assert.js:17:16)
- Function.equivalent (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-assert\assert.js:174:10)
- Test._testAssert (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-test\test.js:86:16)
- Test.<anonymous> (c:\Documents and Settings\apenneba\Desktop\src\ini\test\bar.js:19:7)
- Test.EventEmitter.emit (events.js:92:17)
- Test.emit (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-test\test.js:102:8)
- GlobalHarness.Harness.process (c:\Documents and Settings\apenneba\Desktop\src\ini\node_modules\tap\node_modules\tap-harness\harness.js:86:13)
- process._tickCallback (node.js:415:13)
- Function.Module.runMain (module.js:499:11)
found:
theDude:
abides: true
rugCount: 1
wanted:
theDude:
abides: true
rugCount: 1
diff: |
FOUND: es":true,"rugCount":"1"}}
WANTED: es":true,"rugCount":1}}
^ (at position = 37)
unique: 3
...
ok 5 test/bar.js
1..5
# tests 5
# pass 3
# fail 2
total ................................................... 3/5
not ok
System:
$ specs tap node os
Specs:
specs 0.4
https://github.com/mcandre/specs#readme
tap --version
0.4.2
npm --version
1.2.17
node --version
v0.10.3
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows XP Professional
OS Version: 5.1.2600 Service Pack 3 Build 2600
I'm seeing the same failures on Debian.
$ specs tap node os
Specs:
specs 0.7
https://github.com/mcandre/specs#readme
tap --version
0.4.6
npm --version
1.3.21
node --version
v0.10.21
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.1 (wheezy)
Release: 7.1
Codename: wheezy
It looks like this was broken in commit b28e1b2.
I'm not sure the reason for the change but I will submit a patch to fix the tests.
CI runs in windows currently and passes