File tree Expand file tree Collapse file tree 2 files changed +85
-11
lines changed Expand file tree Collapse file tree 2 files changed +85
-11
lines changed Original file line number Diff line number Diff line change @@ -202,17 +202,54 @@ if err := validateAndConvert(); err != nil {
202
202
203
203
## Testing
204
204
205
- The library has comprehensive test coverage. To run tests:
205
+ The library has comprehensive test coverage. You can use the following make commands to run tests:
206
206
207
+ ### General Test Commands
207
208
``` bash
208
209
# Run all tests
209
- go test ./...
210
+ make test
211
+
212
+ # Run all tests with verbose output
213
+ make test-verbose
210
214
211
215
# Run tests with coverage
212
- go test -cover ./...
216
+ make test-cover
217
+
218
+ # Generate HTML coverage report
219
+ make test-coverage-report
220
+ ```
221
+
222
+ ### Package Specific Tests
223
+ ``` bash
224
+ # Run JSON tests
225
+ make test-json
226
+
227
+ # Run XML tests
228
+ make test-xml
229
+
230
+ # Run YAML tests
231
+ make test-yaml
232
+
233
+ # Run Node tests
234
+ make test-node
235
+
236
+ # Run Benchmark tests
237
+ make test-bench
238
+ ```
239
+
240
+ ### Package Specific Coverage Reports
241
+ ``` bash
242
+ # Run JSON tests with coverage
243
+ make test-json-cover
244
+
245
+ # Run XML tests with coverage
246
+ make test-xml-cover
247
+
248
+ # Run YAML tests with coverage
249
+ make test-yaml-cover
213
250
214
- # Run tests verbosely
215
- go test -v ./...
251
+ # Run Node tests with coverage
252
+ make test-node-cover
216
253
```
217
254
218
255
Current test coverage: >90%
Original file line number Diff line number Diff line change @@ -202,17 +202,54 @@ if err := validateAndConvert(); err != nil {
202
202
203
203
## Test
204
204
205
- Kütüphane kapsamlı test kapsamına sahiptir. Testleri çalıştırmak için:
205
+ Kütüphane kapsamlı test kapsamına sahiptir. Testleri çalıştırmak için aşağıdaki make komutlarını kullanabilirsiniz :
206
206
207
+ ### Genel Test Komutları
207
208
``` bash
208
209
# Tüm testleri çalıştır
209
- go test ./...
210
+ make test
210
211
211
- # Kapsam raporuyla testleri çalıştır
212
- go test -cover ./...
212
+ # Tüm testleri detaylı çıktı ile çalıştır
213
+ make test-verbose
213
214
214
- # Detaylı test çıktısıyla çalıştır
215
- go test -v ./...
215
+ # Testleri kapsam raporu ile çalıştır
216
+ make test-cover
217
+
218
+ # HTML kapsam raporu oluştur
219
+ make test-coverage-report
220
+ ```
221
+
222
+ ### Paket Özel Testler
223
+ ``` bash
224
+ # JSON testlerini çalıştır
225
+ make test-json
226
+
227
+ # XML testlerini çalıştır
228
+ make test-xml
229
+
230
+ # YAML testlerini çalıştır
231
+ make test-yaml
232
+
233
+ # Node testlerini çalıştır
234
+ make test-node
235
+
236
+ # Benchmark testlerini çalıştır
237
+ make test-bench
238
+ ```
239
+
240
+ ### Paket Özel Kapsam Raporları
241
+ ``` bash
242
+ # JSON testlerini kapsam raporu ile çalıştır
243
+ make test-json-cover
244
+
245
+ # XML testlerini kapsam raporu ile çalıştır
246
+ make test-xml-cover
247
+
248
+ # YAML testlerini kapsam raporu ile çalıştır
249
+ make test-yaml-cover
250
+
251
+ # Node testlerini kapsam raporu ile çalıştır
252
+ make test-node-cover
216
253
```
217
254
218
255
Mevcut test kapsamı: >90%
You can’t perform that action at this time.
0 commit comments