hn-cli
hn-cli copied to clipboard
Tests
Write some unit tests to make sure that at least the core features are reliable.
I would like to know which unit test case you are working with so i can write some unit tests here.
@erickbelfy some topics that come to my mind on the subject:
- API reliability
- When selecting items if the URL is properly composed
- Request errors are properly notified
- Renderer progress is properly reported
- Screen is properly "destroyed"
Regarding the test runner, I've been using ava lately for tests and I'm pretty happy with it. Mostly because:
- ES6 stage 2 (
await,async,yield, generators, and so on) is supported out of the box - API is really close to
tapewhich I was using until then
See an example of a simple async test suite I built for a project.
I'm open to use whatever though, just wanted to mention my last experiences with testing.