1+ ---
12# ==============================================================================
23# TUX DISCORD BOT - CODECOV CONFIGURATION
34# ==============================================================================
@@ -90,8 +91,7 @@ coverage:
9091 target : 80%
9192 threshold : 2% # Stricter threshold for critical code
9293 informational : true # Don't block PRs while building up test suite
93- flags : # Covered by main unit test suite
94- - unit
94+ flags : [unit] # Covered by main unit test suite
9595 paths :
9696 - tux/bot.py # Main bot class and Discord client setup
9797 - tux/cog_loader.py # Extension loading and management
@@ -107,9 +107,7 @@ coverage:
107107 target : 90%
108108 threshold : 1% # Very strict threshold for data operations
109109 informational : true # Don't block PRs while building up test suite
110- flags : # Covered by both unit and database-specific tests
111- - unit
112- - database
110+ flags : [unit, database] # Covered by both unit and database-specific tests
113111 paths :
114112 - tux/database/**/* # All database controllers, models, and utilities
115113 only_pulls : true
@@ -121,8 +119,7 @@ coverage:
121119 target : 75%
122120 threshold : 2%
123121 informational : true # Don't block PRs while building up test suite
124- flags :
125- - unit
122+ flags : [unit]
126123 paths :
127124 - tux/modules/**/* # All command modules and Discord slash commands
128125 only_pulls : true
@@ -134,8 +131,7 @@ coverage:
134131 target : 70%
135132 threshold : 3% # More lenient for utility functions
136133 informational : true # Don't block PRs while building up test suite
137- flags :
138- - unit
134+ flags : [unit]
139135 paths :
140136 - tux/utils/**/* # Configuration, helpers, constants, etc.
141137 only_pulls : true
@@ -147,8 +143,7 @@ coverage:
147143 target : 65%
148144 threshold : 3%
149145 informational : true # Don't block PRs while building up test suite
150- flags :
151- - unit
146+ flags : [unit]
152147 paths :
153148 - tux/cli/**/* # Development and management CLI tools
154149 only_pulls : true
@@ -160,8 +155,7 @@ coverage:
160155 target : 80%
161156 threshold : 2%
162157 informational : true # Don't block PRs while building up test suite
163- flags :
164- - unit
158+ flags : [unit]
165159 paths :
166160 - tux/handlers/**/* # Error handlers, event processors, activity handlers
167161 only_pulls : true
@@ -173,8 +167,7 @@ coverage:
173167 target : 70%
174168 threshold : 3%
175169 informational : true # Don't block PRs while building up test suite
176- flags :
177- - unit
170+ flags : [unit]
178171 paths :
179172 - tux/ui/**/* # Discord embeds, buttons, modals, views
180173 only_pulls : true
@@ -186,8 +179,7 @@ coverage:
186179 target : 60%
187180 threshold : 4% # Most lenient threshold due to external dependencies
188181 informational : true # Don't block PRs while building up test suite
189- flags :
190- - unit
182+ flags : [unit]
191183 paths :
192184 - tux/wrappers/**/* # GitHub, XKCD, Godbolt, and other API wrappers
193185 only_pulls : true
@@ -216,8 +208,7 @@ coverage:
216208 target : 95%
217209 threshold : 2% # Very strict for new database operations
218210 informational : true # Don't block PRs while building up test suite
219- flags :
220- - database
211+ flags : [database]
221212 paths :
222213 - tux/database/**/*
223214
@@ -227,8 +218,7 @@ coverage:
227218 target : 90%
228219 threshold : 3%
229220 informational : true # Don't block PRs while building up test suite
230- flags :
231- - unit
221+ flags : [unit]
232222 paths :
233223 - tux/bot.py
234224 - tux/cog_loader.py
@@ -240,8 +230,7 @@ coverage:
240230 target : 90%
241231 threshold : 3%
242232 informational : true # Don't block PRs while building up test suite
243- flags :
244- - unit
233+ flags : [unit]
245234 paths :
246235 - tux/handlers/**/*
247236# ==============================================================================
@@ -331,8 +320,7 @@ component_management:
331320 # DEFAULT COMPONENT RULES
332321 # Applied to all components unless overridden
333322 default_rules :
334- flag_regexes : # Most components covered by unit tests
335- - unit
323+ flag_regexes : [unit] # Most components covered by unit tests
336324 statuses :
337325 - type : project
338326 target : auto # Progressive improvement for all components
@@ -360,12 +348,10 @@ component_management:
360348 name : Database Layer
361349 paths :
362350 - tux/database/**/* # Controllers, models, client, and utilities
363- flag_regexes : # Covered by both unit and DB-specific tests
351+ flag_regexes : [unit, database] # Covered by both unit and DB-specific tests
364352
365353 # BOT COMMANDS AND FEATURES COMPONENT
366354 # User-facing Discord commands and integrations
367- - unit
368- - database
369355 - component_id : modules
370356 name : Bot Commands & Features
371357 paths :
@@ -439,22 +425,19 @@ flag_management:
439425 # UNIT TESTS FLAG
440426 # Main test suite covering individual functions and classes
441427 - name : unit
442- paths : # Covers all application code
443- - tux/
428+ paths : [tux/] # Covers all application code
444429 carryforward : true
445430
446431 # DATABASE TESTS FLAG
447432 # Specific tests for database operations and data integrity
448433 - name : database
449- paths : # Only covers database-related code
450- - tux/database/**/*
434+ paths : [tux/database/**/*] # Only covers database-related code
451435 carryforward : true
452436
453437 # INTEGRATION TESTS FLAG
454438 # End-to-end tests covering full user workflows
455439 - name : integration
456- paths : # Covers all application code in integrated scenarios
457- - tux/
440+ paths : [tux/] # Covers all application code in integrated scenarios
458441 carryforward : true
459442# ==============================================================================
460443# ADVANCED CODECOV SETTINGS
0 commit comments