mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed #33213 -- Doc'd testing code coverage in parallel and used it.
This commit is contained in:
		
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -13,6 +13,6 @@ docs/_build/ | ||||
| docs/locale/ | ||||
| node_modules/ | ||||
| tests/coverage_html/ | ||||
| tests/.coverage | ||||
| tests/.coverage* | ||||
| build/ | ||||
| tests/report/ | ||||
|   | ||||
| @@ -356,14 +356,19 @@ Contributors are encouraged to run coverage on the test suite to identify areas | ||||
| that need additional tests. The coverage tool installation and use is described | ||||
| in :ref:`testing code coverage<topics-testing-code-coverage>`. | ||||
|  | ||||
| Coverage should be run in a single process to obtain accurate statistics. To | ||||
| run coverage on the Django test suite using the standard test settings: | ||||
| To run coverage on the Django test suite using the standard test settings: | ||||
|  | ||||
| .. console:: | ||||
|  | ||||
|    $ coverage run ./runtests.py --settings=test_sqlite --parallel=1 | ||||
|    $ coverage run ./runtests.py --settings=test_sqlite | ||||
|  | ||||
| After running coverage, generate the html report by running: | ||||
| After running coverage, combine all coverage statistics by running: | ||||
|  | ||||
| .. console:: | ||||
|  | ||||
|    $ coverage combine | ||||
|  | ||||
| After that generate the html report by running: | ||||
|  | ||||
| .. console:: | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,7 @@ | ||||
| [run] | ||||
| branch = True | ||||
| concurrency = multiprocessing | ||||
| data_file = .coverages/.coverage | ||||
| omit = | ||||
|     */django/utils/autoreload.py | ||||
| source = django | ||||
|   | ||||
		Reference in New Issue
	
	Block a user