kutuluk / loglevel-plugin-remote

A loglevel plugin for sending browser logs to a server
MIT License
102 stars 36 forks source link

Test Driven Development #7

Closed Looooopy closed 6 years ago

Looooopy commented 6 years ago

We should probably add tests. It's quite cumbersome to do testing in a live environment now and unsafe. Users also get good documentation on how things can be used by looking on tests.

kutuluk commented 6 years ago

Yes, of course, the code needs to be tested, but I have no experience with this. I started to cover the tests with another plugin (https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/test/test.js), but I could only come up with elementary tests.

kutuluk commented 6 years ago

I added testing. Offer tests that are not enough.