[FEATURE]: Add Automated Testing Suite (pytest) and CI for the Backend
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 45/100
Direzione di ricerca
Start by reviewing the backend structure and BestPracticesChecklist.md, especially the test_invocation and test_most requirements. Identify the LangGraph nodes, LLM processing, scraper, utility, and FastAPI route areas to cover, then define how Groq, Pinecone, and SentenceTransformer/Hugging Face are isolated. Done means a pytest suite and GitHub Actions workflow provide deterministic backend regression coverage without changing production behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Feature and its Use Cases
What is the feature?
Introduce a dedicated pytest-based automated testing suite for the Perspective backend, along with a GitHub Actions CI workflow to automatically run the tests on relevant pull requests.
Why is it needed?
The backend contains LangGraph workflows, LLM processing, web scraping, FastAPI routes, and integrations with external services. Without automated tests, changes can introduce regressions that are difficult to detect through manual testing.
The test infrastructure will provide:
- Automated regression coverage
- Faster feedback during development
- Consistent backend validation
- Deterministic tests by isolating external dependencies
- Automated testing through CI
- Maintainable test foundation
The initial test suite should cover:
- LangGraph node behavior and state handling
- LLM processing with mocked external calls
- Scraper behavior
- Utility functions
- FastAPI routes
- Error and edge-case handling
External dependencies such as Groq, Pinecone, and SentenceTransformer/Hugging Face should be isolated where appropriate so tests do not depend on API availability, rate limits, or model downloads.
Expected Outcome
- Dedicated backend pytest test suite
- Automated backend test execution through GitHub Actions
- External dependencies isolated from tests where appropriate
- Regression coverage for core backend functionality
- A foundation for progressively improving backend test coverage
Scope: This issue is limited to backend testing infrastructure and CI.
It does not modify the application's production behavior or introduce new user-facing functionality.
Additional Context
This feature directly supports the automated testing requirements outlined in BestPracticesChecklist.md : particularly 'test_invocation' and 'test_most'.
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- Lingua principale
- TypeScript
- Stelle
- 58
- Fork
- 90
- Merge medio
- 11h 51m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/Perspective
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
AOSSIE-Org/Perspective#191 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
AOSSIE-Org/Perspective#190 ·
-
[BUG]: Missing input validation in URlRequest and ChatQuery causes 500 crashes and wasteful scraper executionForse già presa @agarwalpranav0711 l’ha presa 25 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/Perspective#178 ·
-
[BUG]: chunk_rag_data crashes with ValueError when perspective is a dict, silently dropping RAG vector storageForse già presa @agarwalpranav0711 l’ha presa 36 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
AOSSIE-Org/Perspective#175 ·
-
[BUG]: Scraper passes headers as query params in requests.get (User-Agent never sent)Forse già presa @Th-Shivam l’ha presa 50 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
AOSSIE-Org/Perspective#161 · 1 commento ·
Tutte le issue di AOSSIE-Org/Perspective
Issue simili
-
documentation lens:human needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
thebristolsound/birdbrain#2246 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
A voting window past about 69.9 million hours stores a deadline that reads back as no deadlineApertabug ready-for-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
BoardGamesEmpire/board-games-empire-backend#1452 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue stretch
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno