---
name: "logilab-pytest3"
section: "1"
platform: "linux"
package: "python3-logilab-common"
version: "1.4.2-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/logilab-pytest3"
---

# logilab-pytest3(1)

run python unit tests

## NAME

**logilab-pytest** - run python unit tests

## SYNOPSIS

usage: logilab-pytest \[OPTIONS\] \[testfile \[testpattern\]\]

examples:

logilab-pytest path/to/mytests.py logilab-pytest path/to/mytests.py TheseTests logilab-pytest path/to/mytests.py TheseTests.test\_thisone

logilab-pytest one (will run both test\_thisone and test\_thatone) logilab-pytest path/to/mytests.py **-s** not (will skip test\_notthisone)

logilab-pytest **--coverage** test\_foo.py

-

  (only if logilab.devtools is available)

### options:

- **-h**, **--help**

  show this help message and exit

- **-t** TESTDIR

  directory where the tests will be found

- **-d**

  enable design-by-contract

- **-v**, **--verbose**

  Verbose output

- **-i**, **--pdb**

  Enable test failure inspection (conflicts with **--coverage**)

- **-x**, **--exitfirst**

  Exit on first failure (only make sense when logilab-pytest run one test file)

- **-s** SKIPPED, **--skip**=*SKIPPED*

  test names matching this name will be skipped to skip several patterns, use commas

- **-q**, **--quiet**

  Minimal output

- **-P** PROFILE, **--profile**=*PROFILE*

  Profile execution and store data in the given file

- **--coverage**

  run tests with pycoverage (conflicts with **--pdb**)
