mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	coverage: Move coverage config to tools/coveragerc.
This commit is contained in:
		
							
								
								
									
										11
									
								
								tools/coveragerc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tools/coveragerc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
[report]
 | 
			
		||||
# Regexes for lines to exclude from consideration
 | 
			
		||||
exclude_lines =
 | 
			
		||||
    # Re-enable the standard coverage pragma
 | 
			
		||||
    pragma: no cover
 | 
			
		||||
 | 
			
		||||
[run]
 | 
			
		||||
omit =
 | 
			
		||||
    */zulip-venv-cache/*
 | 
			
		||||
    */migrations/*
 | 
			
		||||
    */management/commands/*
 | 
			
		||||
@@ -230,9 +230,7 @@ if __name__ == "__main__":
 | 
			
		||||
 | 
			
		||||
    if options.coverage:
 | 
			
		||||
        import coverage
 | 
			
		||||
        cov = coverage.Coverage(omit=["*/zulip-venv-cache/*",
 | 
			
		||||
                                      "*/migrations/*",
 | 
			
		||||
                                      "*/management/commands/*"])
 | 
			
		||||
        cov = coverage.Coverage(config_file="tools/coveragerc")
 | 
			
		||||
        cov.start()
 | 
			
		||||
    if options.profile:
 | 
			
		||||
        import cProfile
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user