electron-vue-next icon indicating copy to clipboard operation
electron-vue-next copied to clipboard

Testing guidance

Open jahsome opened this issue 4 years ago • 1 comments

This starter is fantastic. Thank you for the hard work you've put into the project as as the documentation.

I don't see any docs for testing. What are the options here. I've tried running cypress against http://localhost:8080 but it doesn't appear the application is properly bootstrapped. Additionally when I try to go to that URL with my browser, it returns a white screen (empty response).

So the question is, what is the strategy for testing an application bootstrapped with this template?

jahsome avatar Apr 26 '21 00:04 jahsome

I can try to add some testing framework like jest later. Testing frameworks are always heavy... Especially those in-browser e2e framework, so I'll try to investigate some other way for electron.

Also, the renderer side host (localhost:8080) is only worked in electron environment. Opening it in browser will cause problem. Unless you create some bridge API, mimic the APIs in preload.ts.

ci010 avatar May 07 '21 03:05 ci010