menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Mirek D��u...
source image

PlanetPython

2w

read

60

img
dot

Image Credit: PlanetPython

Mirek D��ugosz: pytest: running multiple tests with names that might contain��spaces

  • You can run multiple tests in a suite by passing the full path as a command argument to pytest.
  • If the test names contain spaces, using command arguments directly can lead to failures.
  • To avoid this problem, you can use cat and xargs to pass the test names with spaces as input.
  • Alternatively, you can use the '@' symbol along with the file path containing the test names as a command argument to pytest.

Read Full Article

like

3 Likes

For uninterrupted reading, download the app