MCP HubMCP Hub
SKILL·616885

run-acceptance-tests

hashicorp
Actualizado 1 month ago
9 vistas
736
106
736
Ver en GitHub
Pruebastestingdesign

Acerca de

Esta habilidad proporciona un flujo de trabajo guiado para ejecutar pruebas de aceptación de proveedores de Terraform (prefijadas con `TestAcc`). Maneja la configuración de la variable de entorno requerida `TF_ACC=1` y aconseja sobre la gestión de credenciales específicas del proveedor. También incluye pasos para diagnosticar pruebas fallidas con opciones de depuración acumulativas.

Instalación rápida

Claude Code

Recomendado
Principal
npx skills add hashicorp/agent-skills -a claude-code
Comando PluginAlternativo
/plugin add https://github.com/hashicorp/agent-skills
Git CloneAlternativo
git clone https://github.com/hashicorp/agent-skills.git ~/.claude/skills/run-acceptance-tests

Copia y pega este comando en Claude Code para instalar esta habilidad

Documentación

An acceptance test is a Go test function with the prefix TestAcc.

To run a focussed acceptance test named TestAccFeatureHappyPath:

  1. Run go test -run=TestAccFeatureHappyPath with the following environment variables:
    • TF_ACC=1
    Default to non-verbose test output.
  2. The acceptance tests may require additional environment variables for specific providers. If the test output indicates missing environment variables, then suggest how to set up these environment variables securely.

To diagnose a failing acceptance test, use these options, in order. These options are cumulative: each option includes all the options above it.

  1. Run the test again. Use the -count=1 option to ensure that go test does not use a cached result.
  2. Offer verbose go test output. Use the -v option.
  3. Offer debug-level logging. Enable debug-level logging with the environment variable TF_LOG=debug.
  4. Offer to persist the acceptance test's Terraform workspace. Enable persistance with the environment variable TF_ACC_WORKING_DIR_PERSIST=1.

A passing acceptance test may be a false negative. To "flip" a passing acceptance test named TestAccFeatureHappyPath:

  1. Edit the value of one of the TestCheckFuncs in one of the TestSteps in the TestCase.
  2. Run the acceptance test. Expect the test to fail.
  3. If the test fails, then undo the edit and report a successful flip. Else, keep the edit and report an unsuccessful flip.

Repositorio GitHub

hashicorp/agent-skills
Ruta: terraform/provider-development/skills/run-acceptance-tests
0
doormat-managed
FAQ

Frequently asked questions

What is the run-acceptance-tests skill?

run-acceptance-tests is a Claude Skill by hashicorp. Skills package instructions and resources that Claude loads on demand, so Claude can perform run-acceptance-tests-related tasks without extra prompting.

How do I install run-acceptance-tests?

Use the install commands on this page: add run-acceptance-tests to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.

What category does run-acceptance-tests belong to?

run-acceptance-tests is in the Testing category, tagged testing and design.

Is run-acceptance-tests free to use?

Yes. run-acceptance-tests is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.

Habilidades relacionadas

evaluating-llms-harness
Pruebas

Esta Skill de Claude ejecuta el benchmark lm-evaluation-harness para evaluar modelos de lenguaje en más de 60 tareas académicas estandarizadas como MMLU y GSM8K. Está diseñada para que los desarrolladores comparen la calidad de los modelos, realicen seguimiento del progreso del entrenamiento o reporten resultados académicos. La herramienta admite varios backends, incluidos modelos de HuggingFace y vLLM.

Ver habilidad
cloudflare-cron-triggers
Pruebas

Esta habilidad proporciona conocimiento integral para implementar Cron Triggers de Cloudflare y programar Workers mediante expresiones cron. Cubre la configuración de tareas periódicas, trabajos de mantenimiento y flujos de trabajo automatizados, manejando problemas comunes como expresiones cron inválidas y inconvenientes de zonas horarias. Los desarrolladores pueden utilizarla para configurar manejadores programados, probar activadores cron e integrar con Workflows y Green Compute.

Ver habilidad
webapp-testing
Pruebas

Esta habilidad de Claude proporciona un kit de herramientas basado en Playwright para probar aplicaciones web locales mediante scripts de Python. Permite verificación de frontend, depuración de interfaz de usuario, captura de pantallas y visualización de registros, mientras gestiona los ciclos de vida del servidor. Úsela para tareas de automatización de navegadores, pero ejecute los scripts directamente en lugar de leer su código fuente para evitar contaminación del contexto.

Ver habilidad
finishing-a-development-branch
Pruebas

Esta habilidad ayuda a los desarrolladores a completar el trabajo terminado verificando que las pruebas pasen y luego presentando opciones estructuradas de integración. Guía el flujo de trabajo para fusionar, crear PRs o limpiar ramas después de que se completa la implementación. Úsala cuando tu código esté listo y probado para finalizar sistemáticamente el proceso de desarrollo.

Ver habilidad