mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-11-04 01:47:45 +03:00 
			
		
		
		
	Improved docs for testing
This commit is contained in:
		
							parent
							
								
									bf3a4a88a4
								
							
						
					
					
						commit
						5777d85f99
					
				| 
						 | 
				
			
			@ -80,8 +80,8 @@ pip install -e ".[test]"
 | 
			
		|||
Well-written tests and maintaining good test coverage is important to this project. While developing, run new and existing tests with:
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
py.test PATH/TO/MY/DIR/test_test.py # Single file
 | 
			
		||||
py.test PATH/TO/MY/DIR/ # All tests in directory
 | 
			
		||||
py.test graphene/relay/tests/test_node.py # Single file
 | 
			
		||||
py.test graphene/relay # All tests in directory
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Add the `-s` flag if you have introduced breakpoints into the code for debugging.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -107,8 +107,8 @@ this project. While developing, run new and existing tests with:
 | 
			
		|||
 | 
			
		||||
.. code:: sh
 | 
			
		||||
 | 
			
		||||
    py.test PATH/TO/MY/DIR/test_test.py # Single file
 | 
			
		||||
    py.test PATH/TO/MY/DIR/ # All tests in directory
 | 
			
		||||
    py.test graphene/relay/tests/test_node.py # Single file
 | 
			
		||||
    py.test graphene/relay # All tests in directory
 | 
			
		||||
 | 
			
		||||
Add the ``-s`` flag if you have introduced breakpoints into the code for
 | 
			
		||||
debugging. Add the ``-v`` ("verbose") flag to get more detailed test
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user