jooy2 / vutron

💚 Quick Start Templates for Vite + Electron + Vue 3 + Vuetify + TypeScript. Vutron is a preconfigured template for developing Electron cross-platform desktop apps. It uses Vue 3 and allows you to build a fast development environment with little effort.
https://vutron.cdget.com
MIT License
250 stars 21 forks source link

[Feature Request] Please Add a Test Framework #75

Closed NotTsunami closed 1 year ago

NotTsunami commented 1 year ago

Thank you for creating this template. I have been experimenting with different frameworks when deciding on the framework for my next project and your template has accelerated that research time. One thing that seems a little complex is integrating testing into this specific environment. Especially since this aims to be a production-ready template, I think that it should include a template for testing. Because Spectron is deprecated, I would assume it would use Vitest for writing tests and WebdriverIO to run the tests in an Electron environment.

This is a feature I'm willing to bounty or make a sponsor for. I look forward to hearing your thoughts on this!

jooy2 commented 1 year ago

Hello. Thank you for using my template and leaving feedback.

I recognize the need for a testing framework, and I'm willing to work on one in the near future.

Currently, I am considering the Playwright solution. However, since Vutron is a template, only the basic functionality and tests of a testing framework will be implemented.

Regards,

NotTsunami commented 1 year ago

To me it looks like webdriverio + wdio-electron-service to test Electron and either @testing-library/vue-testing-library or vitest for component-level testing are the best solutions. Only today did I learn how many layers there are to JavaScript testing, and it seems to only get more and more complex the more frameworks you add. It was nice when Spectron was maintained, but unfortunately that's been long deprecated.

jooy2 commented 1 year ago

Hello.

Thank you for your patience. After much consideration, I have decided to adopt Playwright.

Today, I configured a test environment using Playwright and incorporated it into the project. Therefore, I'm closing this issue as complete.

If you have any further questions, please join the discussion or create a new issue.

Regards,