-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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** |