Skip to content

Commit a495f89

Browse files
committed
Updated README.md and Makefile
1 parent f522a06 commit a495f89

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ help:
5252
@echo " |_ makemigrations - Create migrations"
5353
@echo " |_ stop - Stop the docker containers"
5454
@echo " |_ test - Run the tests"
55+
@echo " |_ cov - Run the tests with coverage"
56+
@echo " |_ cov-report - Check the coverage report"
5557
@echo " |_ statics - Collect statics (useful to use the admin site)"
5658
@echo " |_ createsuperuser - Create super user to access the admin"
5759
@echo " |_ bash - Run the bash inside the container"

README.md

+36-1
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,39 @@ You can check the live game here: [Minesweeper](https://minesweeper-web-eight.ve
102102
"column": 3
103103
}
104104
```
105-
105+
106+
* GET `/api/leaderboard/`: List all leaderboards
107+
108+
By default, it returns the 10 leaders for each mode.
109+
you can pass the query param `size` to change the number of leaders returned
110+
111+
## Tests
112+
The project was developed using tests. You can run them with the following commands:
113+
`make test` or `make cov` and check the coverage report with `make cov-report`
114+
115+
## Coverage Report
116+
117+
```
118+
Name Stmts Miss Cover Missing
119+
---------------------------------------------------------------
120+
core/__init__.py 0 0 100%
121+
core/admin.py 8 0 100%
122+
core/apps.py 4 0 100%
123+
core/constants.py 6 0 100%
124+
core/migrations/0001_initial.py 6 0 100%
125+
core/migrations/__init__.py 0 0 100%
126+
core/models.py 50 0 100%
127+
core/serializers.py 50 0 100%
128+
core/services.py 91 0 100%
129+
core/tests/__init__.py 0 0 100%
130+
core/tests/test_models.py 23 0 100%
131+
core/tests/test_views.py 151 0 100%
132+
core/urls.py 6 0 100%
133+
core/views.py 39 0 100%
134+
manage.py 11 2 82% 13-14
135+
minesweeper/__init__.py 0 0 100%
136+
minesweeper/settings.py 26 0 100%
137+
minesweeper/urls.py 3 0 100%
138+
---------------------------------------------------------------
139+
TOTAL 474 2 99%
140+
```

0 commit comments

Comments
 (0)