skeletonlabs / skeleton

A complete design system and component solution, built on Tailwind.
https://skeleton.dev
MIT License
4.89k stars 305 forks source link

NEXT: Automated Testing #2363

Open endigo9740 opened 8 months ago

endigo9740 commented 8 months ago

As part of Skeleton v3, we'll implement support for multiple frontend frameworks. We'll likely want to consolidate on a common and universal testing tool. For this we'll opt for Vitest.

Tasks

Goal

See: https://github.com/skeletonlabs/skeleton/issues/150

We need to ensure we have an adequate depth and quality of test cases per component. This will make it easier to introduce new features, handle refactors, and of course improve general QA testing. With the ultimate goal of ensuring we have a set of simple and robust test cases that are not too rigid.

Some component design and features are still in flux, so aim to ensure that tests may need to be improved over time.

References:

Feedback

If you have additional updates or requests for this feature, please do so in the comments section below.

Hugos68 commented 8 months ago

I'd think Testing Library will be beneficial for cross framework component testing because the sheer amount of frameworks they support. This will allow for a familliar testing API no matter what framework is being tested on. From the last time I used it, it is compatible with vitest meaning we don't need 2 test runners. It would simply provide a virtual dom to mount and test components in.

endigo9740 commented 8 months ago

Yeah that's been my thought as well. We actually use Testing Library already for Skeleton v2.

(Though I really hate the name - it's so generic you can't google for anything you need! Grr! :D)