Tgc Run Integration Tests Skill
Testing & Qualitytgc-run-integration-tests-skillTgc Run Integration Tests Skill is an Agent Skill for testing & quality published in the GoogleCloudPlatform/magic-modules repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Run integration tests for TGC. Use when you need to run integration tests for TGC.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/GoogleCloudPlatform/magic-modules/blob/HEAD/.agents/archive/tgc/skills/tgc/tgc-run-integration-tests-skill/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/tgc-run-integration-tests-skill, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
tgc-run-integration-tests-skill
When you need to run integration tests for TGC, use this skill.
When to Use This Skill
- Use this when running integration tests for TGC.
- This is helpful when you need to validate conversion logic for resources you have just added or modified.
How to Use It
If you added or modified a resource, you must run its corresponding integration tests.
-
Identify the target test name and its specific service directory.
- Example: Target
TestAccAlloydbBackuplocated in./test/services/alloydb.
- Example: Target
-
Run the test using the script from the
scriptsfile, passing the test path and test name:.agents/skills/tgc/tgc-run-integration-tests-skill/scripts/run_integration_test.sh <test-path> <test-name>Example:
.agents/skills/tgc/tgc-run-integration-tests-skill/scripts/run_integration_test.sh ./test/services/alloydb TestAccAlloydbBackup
[!IMPORTANT] You MUST use the
./prefix for the<test-path>(e.g.,./test/services/alloydb) to ensurego testinterprets it as a local directory rather than a standard library package.
Error Reporting
If a failure is detected or provided, you MUST report it using the template specified in TGC_WORKFLOWS.md before proceeding.