mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-24 20:03:41 +03:00
docs(tests): testing strategies (#464)
This commit is contained in:
parent
b33fcc8bf7
commit
6c6fa01411
30
docs/docs/Reference/Tests.md
Normal file
30
docs/docs/Reference/Tests.md
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
title: Testing Strategies
|
||||
---
|
||||
|
||||
## Backend
|
||||
|
||||
- E2E Test
|
||||
- User journeys
|
||||
- Unit Test
|
||||
- Test base classes for models for breaking change (Vectorstore, Brainpicking, etc...)
|
||||
- Test endpoints
|
||||
- Test utility functions
|
||||
- Test critical functions
|
||||
- Chat related functions
|
||||
|
||||
How:
|
||||
- Pytest
|
||||
|
||||
# Frontend
|
||||
|
||||
- Functionnal tests
|
||||
- Good rendering of components
|
||||
- Backend call is made
|
||||
- State is updated
|
||||
- User can interact with the component
|
||||
|
||||
How:
|
||||
- Vitest
|
||||
- RTL (React Testing Library)
|
3
docs/docs/Reference/_category_.json
Normal file
3
docs/docs/Reference/_category_.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"position": 4
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
sidebar_position: 6
|
||||
title: Privacy Policy
|
||||
---
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Roadmap
|
||||
|
Loading…
Reference in New Issue
Block a user