### Install pytest-pystack Source: https://github.com/bloomberg/pytest-pystack/blob/main/README.md Installs the pytest-pystack plugin using pip. This is the standard method for adding the plugin to your Python environment. ```shell python -m pip install pytest-pystack ``` -------------------------------- ### Configure PyStack via pyproject.toml Source: https://github.com/bloomberg/pytest-pystack/blob/main/README.md Configures PyStack plugin settings within a pyproject.toml file. This provides a declarative way to manage plugin options for a project. ```toml [tool.pytest.ini_options] pystack_threshold=60 pystack_path="custom-version-of-pystack" pystack_output_file="./pystack.log" pystack_args="--native" ``` -------------------------------- ### Configure PyStack Executable Path Source: https://github.com/bloomberg/pytest-pystack/blob/main/README.md Sets the path to the `pystack` executable. This is useful if a custom or specific version of pystack needs to be used. ```APIDOC pytest --pystack-path= Parameters: --pystack-path=: Path to the `pystack` executable. ``` -------------------------------- ### Configure PyStack Arguments Source: https://github.com/bloomberg/pytest-pystack/blob/main/README.md Passes additional arguments to the `pystack remote ` command. This allows for customization of pystack's behavior, such as enabling native stack traces. ```APIDOC pytest --pystack-args="" Parameters: --pystack-args="": Additional arguments to pass to `pystack remote `, like `--native` or `--native-all`. ``` -------------------------------- ### Contribution: Developer's Certificate of Origin (DCO) Source: https://github.com/bloomberg/pytest-pystack/blob/main/README.md Confirms that contributions are licensed under the project's terms and that the contributor has the right to submit the code. This is done by adding a 'Signed-Off-By' line to the commit message. ```shell git commit -s -m "Your commit message Signed-Off-By: Random J. Developer " ``` -------------------------------- ### Configure PyStack Threshold Source: https://github.com/bloomberg/pytest-pystack/blob/main/README.md Enables the PyStack plug-in and monitors all tests, generating a stack trace if they take longer than the specified threshold. This option does not stop or fail the test case. ```APIDOC pytest --pystack-threshold= Parameters: --pystack-threshold=: Enables the plug-in and monitors all tests, generating a stack trace if they take longer than the specified threshold (e.g., 5 seconds). Note: This neither stops nor fails the test case after the specified threshold. ``` -------------------------------- ### Sign Git Commits with DCO Source: https://github.com/bloomberg/pytest-pystack/blob/main/CONTRIBUTING.md Adds the Signed-Off-By line to your commit message using the git commit command with the --signoff flag. This action confirms your agreement to the project's licensing terms and the Developer's Certificate of Origin. ```git git commit -s ``` ```git git commit --signoff ``` -------------------------------- ### Configure PyStack Output File Source: https://github.com/bloomberg/pytest-pystack/blob/main/README.md Specifies a file path where PyStack output should be appended. This allows for persistent logging of stack traces from hanging tests. ```APIDOC pytest --pystack-output-file= Parameters: --pystack-output-file=: Appends PyStack output to a specified file. ``` -------------------------------- ### DCO Commit Message Format Source: https://github.com/bloomberg/pytest-pystack/blob/main/CONTRIBUTING.md Specifies the required format for commit messages to comply with the Developer's Certificate of Origin (DCO). It mandates the inclusion of a 'Signed-Off-By:' line with your real name and email address as the last line of the commit message. ```text Signed-Off-By: Random J. Developer ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.