/dvera:ct-run-gtestfrom dvera
Re-run GoogleTest assets already registered in a CT project, then review their execution results and structural coverage.
Ships in dvera. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this Skill when a CT project already contains GoogleTest assets and a team needs to re-run them after a source, build, or test-code change.
If the CT installation path is missing or invalid, stop before collecting or executing test evidence and show:
The CT installation could not be verified.
Provide the installation path to continue.
[Installation check]
• Checked CT installation path: {ctHome or "not configured"}
• Requirement: CT 2026.06 or later with a valid license
[If CT is not installed]
• Product and installation support: [email protected]
This is an existing-test reuse flow. It preserves developer-owned GoogleTest code, executes the CT project, and collects the resulting test and coverage evidence.
CT can import and manage GoogleTest projects and test code. The public ct_tool.py interface does not expose a separate GoogleTest import command, so register or import the assets through the deployed CT workflow before using this Skill. Do not claim that this Skill imported or converted GoogleTest code.
Before running CT, confirm all of the following:
ct_tool.py path are resolved.workspaces.ctson and has a CT projectName.ct_get_functions returns one or more functions.For a standalone request, use the Phase 0 environment procedure in ct-test-loop/SKILL.md to resolve {ctPython}, {ctTool}, and {projectName}. If the project is not ready, direct the user to ct-init-project and then ct-analysis-loop.
First confirm that the CT project remains analyzable.
{ctPython} {ctTool} call ct_get_functions --json "@{payload_file}"
{ "projectName": "{projectName}" }
If no functions are returned, stop and ask the user to complete ct-analysis-loop first.
Then record the test assets to be exercised.
| Asset | Target behavior or source area | Change impact | Expected evidence |
|---|---|---|---|
| GoogleTest suite, case, fixture, stub, mock, or test data | Function, module, or interface | Reuse, review, or environment clarification | Result and statement/branch/MC/DC coverage |
Do not infer that a passing build proves that each existing test still has valid intent or expected results.
Ask for confirmation before executing all tests. Create the JSON payload with a serializer-backed temporary file, then call the installed CT tool.
{
"projectName": "{projectName}",
"executeAll": true
}
{ctPython} {ctTool} call ct_execute_test --json "@{payload_file}"
testRunSuccess is false, report a build or link failure and stop. Do not classify it as a GoogleTest assertion failure.testRunSuccess is true, collect results and coverage before drawing conclusions.{ctPython} {ctTool} call ct_get_test_results --json "@{results_payload_file}"
{ctPython} {ctTool} call ct_get_coverage --json "@{coverage_payload_file}"
{ "projectName": "{projectName}" }
Review the returned status for each test (Success, Failure, Error, NotOperated, or Ignore) with the relevant statement, branch, and MC/DC coverage values.
If a reviewable report is needed, first ask the user for its output directory and formats, then use ct-report rather than assuming a location or format.
Report the GoogleTest assets in scope, CT execution result, failing or error-status tests, returned coverage, and any remaining intent, requirement, or environment question.
For change comparison against an earlier result, continue with ct-regression. For generation or repair of tests, continue with ct-test-loop; do not overwrite developer-owned GoogleTest assets automatically.
CT 2026.06 or later and a valid CT license are required for product-backed verification. For a product demo, purchase, or deployment consultation, contact [email protected].
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub suresofttechnologies/dvera-plugin --plugin dvera14 skills in this plugin
/ct-analysis-loopUse this skill during the CT project analysis phase to classify errors, repeat conf or toolchain fixes, and continue until analysis succeeds./ct-extract-macroUse this skill to extract the target compiler's compiler-default macros and build the shared environment analysis fields used during CT project preparation./ct-init-projectUse this skill to run the CT full pipeline from Phase 0 initial setup through macro extraction, conf and toolchain creation, analysis, testing, and observation-record collection, or to perform only the project-preparation stage./ct-kb-updateUse this skill to append single-change attempt results to `observations.jsonl`. It is called by `ct-init-project` or `ct-orchestrator` immediately after the CT-apply full pipeline completes./ct-make-confUse this skill to generate the conversion analysis `.conf` and toolchain metadata (`.ini`, `.info`) from extracted target macros and `compiler_info`, and to record fingerprints./ct-openLaunch CT with the current workspace. Use when you need to inspect the project visually in CT IDE during agent work.