nuxt-styleguide icon indicating copy to clipboard operation
nuxt-styleguide copied to clipboard

Improve test coverage

Open HerrBertling opened this issue 6 years ago • 2 comments

Right now, the test coverage across the different packages is rather low:

image

I'd like to improve this quite a bit to make future work on the packages a bit more secure. Can't pin down a definite percentage I want to achieve since a) I don't know whether I'm able to test everything and b) I currently have no idea which parts need testing and which can do without 😆

Something at ~50% seems like a good first shot, though.

@svewag @escapedcat @Xiphe @fdietz If anyone of you has input here, feel free to comment :)

HerrBertling avatar Jan 28 '19 16:01 HerrBertling

For me it's hard to pin a number to it. Depending on the functions and the context the percentage could vary quite a bit I think. In some projects 30% could be enough. Depends :P

escapedcat avatar Jan 28 '19 16:01 escapedcat

I would also rather focus on adding some cypress/e2e tests that ensure that the developer-facing-API works as expected.

Xiphe avatar Feb 20 '19 10:02 Xiphe