hn-cli icon indicating copy to clipboard operation
hn-cli copied to clipboard

Tests

Open rafaelrinaldi opened this issue 9 years ago • 2 comments

Write some unit tests to make sure that at least the core features are reliable.

rafaelrinaldi avatar Feb 04 '16 00:02 rafaelrinaldi

I would like to know which unit test case you are working with so i can write some unit tests here.

erickbelfy avatar Feb 04 '16 11:02 erickbelfy

@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 tape which 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.

rafaelrinaldi avatar Feb 04 '16 11:02 rafaelrinaldi