Skip to content

QST: Request for a method to map test functions to the functions they test #60456

@angiolye24

Description

@angiolye24

Research

  • I have searched the [pandas] tag on StackOverflow for similar questions.

  • I have asked my usage related question on StackOverflow.

Link to question on StackOverflow

https://stackoverflow.com/questions/79239968/request-for-a-method-to-map-test-functions-to-the-functions-they-test

Question about pandas

I am looking for a way to efficiently map test functions to the specific functions or modules they test. This would help in understanding the coverage and relationships between the test suite and the codebase. Specifically, I'd like to:

Identify which test functions are associated with which functions or modules in the pandas library.

Determine if there's a built-in tool, strategy, or script to extract this mapping.

If there is no such tool or methodology currently available, could you guide us on how this might be achieved?

This would greatly help in improving test coverage analysis.

I have been trying to use git blame and commit history analysis to trace which test functions were added or modified alongside new or updated functions in the codebase. The goal is to map these test functions to the specific functions or modules they test.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions