I want to run one test module for different command line options in parallel. Can this be achieved in pytest? So, for example if I have a test module called test_webservice.py and I am accepting one command line argument while running say, "url". I currently run this one with following command:
python -m pytest test_webservice.py --url "https://example.com"
and then again for a different url as:
python -m pytest test_webservice.py --url "https://example2.com"
Now I want to run test_webservice.py for both the urls in parallel. The test cases remain same, only change is the url. Is there a way to do this using pytest?