Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 783 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 783 Bytes

mocha l8 smartlight reporter

Reporter unsing the L8 Smartlight as an extreme feedback device for mocha tests.

##Prerequisites

  • L8 is accessible, e.g. cat /dev/ttyACM0
  • On linux plugin the L8 and see the dmesg output to find the device name
  • if you got permission denied add user to the dialout group (ubuntu)
    • sudo usermod -a -G dialout $USER

Usage

  • Install mocha-l8-reporter as a dev depenency with npm install --save --dev mocha-l8-reporter or install globally with npm install -g mocha-l8-reporter
  • enable reporter with -R mocha-l8-reporter
  • if your l8 is not accessible via /dev/ttyACM0 use
    • mocha [...] -O l8port=/dev/yourDevice
    • or L8_PORT=/dev/yourDevice mocha [...]