[pytest] # Pytest Configuration for Cognitive Prism Automation Tests # Test discovery patterns python_files = test_*.py python_classes = Test* python_functions = test_* # Test execution order (by default, pytest runs tests in alphabetical order) # We use markers to control execution order # Order: component (optional) → authentication → profile → assessment # Markers for test categorization markers = component: Component-level isolated tests (optional, run first) authentication: Authentication tests (login, password reset, logout) profile: Profile completion tests assessment: Assessment flow tests integration: Integration tests login: Login-specific tests password_reset: Password reset tests logout: Logout tests # Test execution options addopts = -v --strict-markers --tb=short --html=reports/test_report.html --self-contained-html --capture=no # Logging log_cli = true log_cli_level = INFO log_cli_format = %(asctime)s [%(levelname)8s] %(message)s log_cli_date_format = %Y-%m-%d %H:%M:%S # Warnings filterwarnings = ignore::DeprecationWarning ignore::pytest.PytestUnknownMarkWarning # Minimum Python version minversion = 7.0