File tree 2 files changed +38
-1
lines changed
2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 52
52
@echo " |_ makemigrations - Create migrations"
53
53
@echo " |_ stop - Stop the docker containers"
54
54
@echo " |_ test - Run the tests"
55
+ @echo " |_ cov - Run the tests with coverage"
56
+ @echo " |_ cov-report - Check the coverage report"
55
57
@echo " |_ statics - Collect statics (useful to use the admin site)"
56
58
@echo " |_ createsuperuser - Create super user to access the admin"
57
59
@echo " |_ bash - Run the bash inside the container"
Original file line number Diff line number Diff line change @@ -102,4 +102,39 @@ You can check the live game here: [Minesweeper](https://minesweeper-web-eight.ve
102
102
"column" : 3
103
103
}
104
104
```
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
+ ```
You can’t perform that action at this time.
0 commit comments