Find testcases covering function

From opensage-agent/opensage-adk · View interactive version

Find testcases covering function is an AI agent skill from the GitHub repository opensage-agent/opensage-adk. Find testcase IDs (TESTCASE nodes) that cover a given function (METHOD node) in Neo4j.

How to use this skill

Skill file

find_testcases_covering_function

Find testcase IDs that cover a given function.

Usage

python3 /bash_tools/coverage/find-testcases-covering-function/scripts/find_testcases_covering_function.py "FUNCTION_NAME" \
  --file_path "/absolute/path/to/file" \
  --database "analysis"

Requires Sandbox

neo4j, main

Parameters

function_name (required, positional position 0)

Type: str

Function name to query.

--file_path (optional, named parameter)

Type: str

Optional file path to disambiguate results.

Return Value

{
  "testcase_ids": ["<id1>", "<id2>"]
}

Returns JSON with testcase_ids (may be empty).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.