Skip to content

Instantly share code, notes, and snippets.

@edgarsilva
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edgarsilva/9c56e335c178d397691d to your computer and use it in GitHub Desktop.
Save edgarsilva/9c56e335c178d397691d to your computer and use it in GitHub Desktop.
$ npm test
> serialport@1.3.1 test /home/travis/build/hybridgroup/node-serialport
> grunt --verbose
Initializing
Command-line options: --verbose
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Initializing config...OK
Registering "grunt-mocha-test" local Npm module tasks.
Reading /home/travis/build/hybridgroup/node-serialport/node_modules/grunt-mocha-test/package.json...OK
Parsing /home/travis/build/hybridgroup/node-serialport/node_modules/grunt-mocha-test/package.json...OK
Loading "mocha.js" tasks...OK
+ mochaTest
Registering "grunt-contrib-jshint" local Npm module tasks.
Reading /home/travis/build/hybridgroup/node-serialport/node_modules/grunt-contrib-jshint/package.json...OK
Parsing /home/travis/build/hybridgroup/node-serialport/node_modules/grunt-contrib-jshint/package.json...OK
Loading "jshint.js" tasks...OK
+ jshint
Loading "Gruntfile.js" tasks...OK
+ default
No tasks specified, running default tasks.
Running tasks: default
Running "default" task
Running "jshint" task
Running "jshint:all" (jshint) task
Verifying property jshint.all exists in config...OK
Files: Gruntfile.js, parsers.js, serialport.js, test/parsers.js, test/serialport-basic.js, test/serialport-c.js, arduinoTest/requiresComPort.js, arduinoTest/stress.js -> all
Options: force=false, reporterOutput=null, node, -W030, globals={"before":false,"after":false,"beforeEach":false,"afterEach":false,"describe":false,"it":false}
OK
>> 8 files lint free.
Running "mochaTest" task
Running "mochaTest:test" (mochaTest) task
Verifying property mochaTest.test exists in config...OK
Files: test/parsers.js, test/serialport-basic.js, test/serialport-c.js
Options: reporter="spec"
parsers
#raw
✓ emits data exactly as it's written
#readline
✓ emits data events split on a delimiter
SerialPort
Constructor
✓ opens the port immediately
✓ emits an error on the factory when erroring without a callback
✓ errors with invalid databits
✓ allows optional options
reading data
✓ emits data events by default
✓ calls the dataCallback if set
#open
✓ passes the port to the bindings
✓ calls back an error when opening an invalid port
✓ emits data after being reopened
close
✓ fires a close event when it's closed
✓ fires a close event after being reopened
disconnect
✓ fires a disconnect event
SerialPort
Initialization
1) Throws an error in callback when trying to open an invalid port
14 passing (43ms)
1 failing
1) SerialPort Initialization Throws an error in callback when trying to open an invalid port:
Error: Module did not self-register.
at Module.load (module.js:349:32)
at Function.Module._load (module.js:305:12)
at Module.require (module.js:357:17)
at require (module.js:373:17)
at Object.<anonymous> (/home/travis/build/hybridgroup/node-serialport/serialport.js:12:25)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:349:32)
at Function.Module._load (module.js:305:12)
at Module.require (module.js:357:17)
Warning: Task "mochaTest:test" failed. Use --force to continue.
Aborted due to warnings.
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
The command "npm test" exited with 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment