Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All the templates should include tests #625

Open
glyad opened this issue Feb 28, 2024 · 3 comments
Open

All the templates should include tests #625

glyad opened this issue Feb 28, 2024 · 3 comments

Comments

@glyad
Copy link

glyad commented Feb 28, 2024

No description provided.

@amrbashir
Copy link
Member

What kind of tests do you expect? create-tauri-app so far has been trying to stay minimal as possible especially since there is a lot of frameworks but I am open to the idea if seems reasonable or maybe add behind --tests flag.

@PawsFunctions
Copy link
Contributor

I am using Leptos as my frontend framework and appreciate the concept. However, to add tests in the template, we need to create two different cases: one for the Rust function and another for the WASM component logic test. Both cases are well defined in the Leptos book. Including them in the template could increase the chances of future breaking changes. If users want to use Leptos, they should read the book and implement their tests. I found this approach to be fairly simple and more aligned with Leptos than Tauri. Other template cases may vary.

https://book.leptos.dev/testing.html

@glyad
Copy link
Author

glyad commented Nov 23, 2024

I meant the basic tests setup respectfully to backend and front-end flavors. One test method per backend and one per frontend. Just as an example or starting point. No more...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants