keen / keen-analysis.js

A light JavaScript client for Keen
https://keen.io/docs/compute/
MIT License
40 stars 15 forks source link

Provide command to run unit tests #12

Closed venil7 closed 8 years ago

venil7 commented 8 years ago

Something like npm test or similar..

tbarn commented 8 years ago

gulp test:unit should work.

We should get that added to the docs. 😄

venil7 commented 8 years ago

this requires gulp to be installed globally, while if you addit to package.json it will pick local gulp install, I addressed it in my PR #11

btw, tests on master fail:

Error: Mismatched anonymous define() module: function () {
            return proclaim;
        }~|_( ^ .^)
http://requirejs.org/docs/errors.html#mismatch

   in defaultOnError at file:///Users/user/Downloads/keen-analysis.js/test/vendor/require.js:141
   in onError at file:///Users/user/Downloads/keen-analysis.js/test/vendor/require.js:545
   in intakeDefines at file:///Users/user/Downloads/keen-analysis.js/test/vendor/require.js:1240
   at file:///Users/user/Downloads/keen-analysis.js/test/vendor/require.js:1427