Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ylovato01 authored May 14, 2024
1 parent 6e31ddc commit 5bbafb1
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions backend/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# backend

# run flaks
```
python .\main.pym
```
# run unit test
```
pytest
```
## Copertura del codice
```
coverage run -m pytest
```
## Conversione del file .coverage in xml
```
coverage xml -o coverage.xml
```
# Installazione

- Clonare la repository
- Tramite Command Shell posizionarsi nel percorso ./backend;
- Installare le dipendeze con il comando:
- **pip install -r ./requirements.txt**
- Avviare il backend con il comando:
- **python ./main.py**

## Testing

Per eseguire l'analisi statica eseguire il comando:

- **flake8** seguito dal nome del file su cui eseguire il linting

Per eseguire i test di unità e di integrazione eseguire il comando:

- **python -m unittest discover -s .\tests**

0 comments on commit 5bbafb1

Please sign in to comment.