Skip to content

Commit

Permalink
Add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Jun 20, 2018
1 parent ce6d749 commit 51dfe29
Show file tree
Hide file tree
Showing 5 changed files with 2,797 additions and 200 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
language: node_js

node_js:
- "8"
- stable

install:
- npm install

script:
- npm run cover
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![Build Status](https://travis-ci.org/codetheweb/tuyapi.svg?branch=master)](https://travis-ci.org/codetheweb/tuyapi)
[![Coverage Status](https://coveralls.io/repos/github/codetheweb/tuyapi/badge.svg?branch=master)](https://coveralls.io/github/codetheweb/tuyapi?branch=master)

A library for communicating with devices that use the [Tuya](http://tuya.com) cloud network. These devices are branded under many different names, but if port 6668 is open on your device chances are this library will work with it.
Currently only supports smart plugs, but it should be fairly trivial to add other types of devices.
Expand Down Expand Up @@ -50,7 +51,7 @@ See the [docs](docs/API.md).
1. Add automated tests
2. Document details of protocol
3. Retry when ECONNRESET is thrown
4. Figure out correct CRC algorithm
4. Figure out correct CRC algorithm

## Contributors

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ const Parser = require('./lib/message-parser');
/*
* Check arguments for all functions, throw error if invalid
* Check open issues on Github
* Run style linter / tests
* Parallel resolveIds()?
* Use develop branch
* Update docs on setup
* Update docs for DPS
* Add comments in code
* Add coverage
*/

/**
Expand Down
Loading

0 comments on commit 51dfe29

Please sign in to comment.