def pytest_addoption(parser):
 parser.addoption('--all', action='store_true', help='run all tests')
 parser.addoption('--device_id', type=int, default=0, help='GPU device to use')
 return

def pytest_addoption ( parser ) : parser . addoption ( '--all' , action = 'store_true' , help = 'run all tests' ) parser . addoption ( '--device_id' , type = int , default = 0 , help = 'GPU device to use' ) return
add a --all option to run the full range of parameters for tests generated using the pytest test generators .