kanriapp / kanri

🪐 Modern offline Kanban board app for Windows, MacOS and Linux. Built with simplicity and user experience in mind.
https://kanriapp.com
GNU General Public License v3.0
744 stars 61 forks source link

HELP NEEDED: Find out suitable testing strategy (unit tests, e2e tests) #13

Open trobonox opened 1 year ago

trobonox commented 1 year ago

I am currently debating how the application should be tested, open for ideas (frameworks to use, what approach makes most sense for this app). Since the app uses TypeScript, mostly saving logic to JSON and drag-n-drop would have to be tested, so unit tests might be the most appropriate.

Tracking issue, open for suggestions/ideas.

gitoak commented 1 month ago

let me look into it

gitoak commented 1 month ago

TL;DR: Use Vitest for unit tests on logic like JSON saving, utils and dnd mechanics. Use Playwright for E2E testing of full user flows, dnd UI and platform specific features (e.g., file system). This covers both isolated logic and critical user interactions across platforms.

Testing Strategy

Unit Testing with Vitest:

E2E Testing with Playwright

This Testing Strategy is optimized for the Nuxt + Tauri stack and is also compatible with GH actions for automatic tests

Love to hear your feedback @trobonox