Skip to content

Examples

This section provides complete examples of using the Pytest GxP plugin.

Example Project Structure

project/
├── gxp_spec_files/
│   ├── design_specification.md
│   ├── functional_specification.md
│   ├── user_specification.md
│   └── installation_specification.md
├── tests/
│   └── test_example.py
└── pytest.ini

Quick Example

See the examples/ directory in the repository for a complete working example.

Specification Examples

Specification ID Format Qualification Phase
Design Specification DS-XXX OQ
Functional Specification FS-XXX OQ
User Specification US-XXX PQ
Installation Specification IS-XXX IQ

Running the Examples

cd examples
pytest --gxp \
  --gxp-spec-files=gxp_spec_files \
  --gxp-report-files=gxp_report_files

Next Steps