concept for testing #33
Labels
No labels
bug
documentation
duplicate
enhancement
Feature Request
good first issue
help wanted
improvement
in progress
invalid
nag
Priority: High
Priority: Low
Priority: Medium
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Strichliste/strichliste#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Write some rust tests to verify application behaviour.
Scope (IMHO)
TODOS
Frontend tests
We probably want to use wasm-bindgen-test (more docs) so we can write fancy tests like these:
But we need to re-write the components, so they don't request data themselves, but instead receive it from the parent component.
Or we can make it take in an optional signal, which we use when testing, but the components still fetch the data themselves while not testing, since something like
ShowUserhas to request data, because it's essentially a root node.Backend tests
Testing the backend is gonna be interesting. Since just using
#[test]doesn't work with server functions / SSR. So maybe e2e it is?