Skip to content

feat: add support for pytest-describe container functions #114

Open
sruizr wants to merge 1 commit into
nvim-neotest:masterfrom
sruizr:feat/pytest-describe-support
Open

feat: add support for pytest-describe container functions #114
sruizr wants to merge 1 commit into
nvim-neotest:masterfrom
sruizr:feat/pytest-describe-support

Conversation

@sruizr
Copy link
Copy Markdown

@sruizr sruizr commented Apr 16, 2026

  • Extract describe_prefixes from pytest configuration at runtime
  • Generate treesitter queries for container functions (describe_, context_, when_, given_, scenario_, requirement_)
  • Support unlimited nesting depth for pytest-describe test organization
  • Maintain backward compatibility with projects not using describe_prefixes
  • Default to common pytest-describe prefixes if not configured

This enables neotest-python to correctly discover and run deeply nested pytest-describe tests, fixing the issue where tests were marked as not found when using nested container functions.

…ary nesting depth

- Extract describe_prefixes from pytest configuration at runtime
- Generate treesitter queries for container functions (describe_, context_, when_, given_, scenario_, requirement_)
- Support unlimited nesting depth for pytest-describe test organization
- Maintain backward compatibility with projects not using describe_prefixes
- Default to common pytest-describe prefixes if not configured

This enables neotest-python to correctly discover and run deeply nested
pytest-describe tests, fixing the issue where tests were marked as not found
when using nested container functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants