You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We will likely break this up into framework specific issues like "Vue Test Coverage", "React Test Coverage", etc. For now, I just wanted to capture the overall notion that we'd like to increase test coverage…
There's a whole back story on why, but we don't have great test coverage across AgnosticUI. At one point we were starting to in some of the packages, but, then we did big upgrades from Svelte to SvelteKit, Vue 2 to Vue 3, etc., etc.
I do find that certain tests can do more harm than good e.g. when a unit test delves deep into the implementation details of the system under test, or, really complex setups or spies. This can cause a huge burden in making bug fixes, refactoring, etc., if it's extremely hard to understand the setup.
As can be seen, the tests are quite simple yet supply a pretty decent amount of coverage. I would like us to take a similar approach and start to add test coverage across the Svelte, Vue 3, and React implementations.
The text was updated successfully, but these errors were encountered:
Epic — Test Coverage
We will likely break this up into framework specific issues like "Vue Test Coverage", "React Test Coverage", etc. For now, I just wanted to capture the overall notion that we'd like to increase test coverage…
There's a whole back story on why, but we don't have great test coverage across AgnosticUI. At one point we were starting to in some of the packages, but, then we did big upgrades from Svelte to SvelteKit, Vue 2 to Vue 3, etc., etc.
I do find that certain tests can do more harm than good e.g. when a unit test delves deep into the implementation details of the system under test, or, really complex setups or spies. This can cause a huge burden in making bug fixes, refactoring, etc., if it's extremely hard to understand the setup.
I've had success using Cypress to do "just enough" testing. This is an example of a very simple Cypress script I used when doing the port of vue-a11y-dialog to Vue 3:
https://github.com/morkro/vue-a11y-dialog/blob/main/src/Demo.spec.ct.js
As can be seen, the tests are quite simple yet supply a pretty decent amount of coverage. I would like us to take a similar approach and start to add test coverage across the Svelte, Vue 3, and React implementations.
The text was updated successfully, but these errors were encountered: