Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
affaan-m avatar

Quarkus Verification

  • 1.4k installs
  • 238k repo stars
  • Updated August 5, 2026
  • affaan-m/ecc

This is a copy of quarkus-verification by affaan-m - installs and ranking accrue to the original listing.

quarkus-verification is an agent skill that runs a complete Quarkus verification loop—build, static analysis, covered tests, security scans, native compile, and diff review—before pull requests or deploys.

About

quarkus-verification is an ECC-origin agent skill describing a Spanish-language verification loop for Quarkus microservice projects. Developers trigger it before opening pull requests, after major refactors or dependency upgrades, and before staging or production deploys. The pipeline order is build, lint static analysis, tests with coverage thresholds, security scanning, native compilation, and diff review against the target branch. The skill fits JVM teams shipping Quarkus REST or reactive services who want agents to run the same pre-PR checklist every time instead of skipping native builds or security scans under deadline pressure. It validates that coverage and compile targets pass before merge, reducing regressions on GraalVM native images.

  • Full verification loop: build, static analysis, tests with coverage, security scans, native compilation, and diff review
  • Enforces 80%+ test coverage threshold before passing
  • Runs before PRs, after major refactoring, and pre-deployment
  • Includes Maven and Gradle command sequences for Quarkus projects
  • Stops on build failure and surfaces static analysis issues like null pointers and complexity

Quarkus Verification by the numbers

  • 1,351 all-time installs (skills.sh)
  • +83 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/affaan-m/ecc --skill quarkus-verification

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.4k
repo stars238k
Last updatedAugust 5, 2026
Repositoryaffaan-m/ecc

How do you verify a Quarkus service before opening a PR?

Run a complete verification loop on Quarkus services before creating pull requests or deploying.

Who is it for?

Quarkus backend developers who need a repeatable pre-PR and pre-deploy verification pipeline including native builds and security scans.

Skip if: Non-Quarkus Java projects, frontend-only repos, or teams that deploy without JVM native image requirements.

When should I use this skill?

The user prepares a Quarkus pull request, finishes a major refactor, or needs pre-deploy verification with coverage and security scans.

What you get

Passing build, lint, coverage report, security scan results, native compile artifact, and reviewed diff summary.

  • coverage report
  • security scan results
  • native compile verification

Files

SKILL.mdMarkdownGitHub ↗

Bucle de Verificación Quarkus

Ejecutar antes de PRs, después de cambios importantes y antes del despliegue.

Cuándo Activar

  • Antes de abrir un pull request para un servicio Quarkus
  • Después de refactorizaciones importantes o actualizaciones de dependencias
  • Verificación previa al despliegue para staging o producción
  • Ejecutar el pipeline completo de build → lint → test → escaneo de seguridad → compilación nativa
  • Validar que la cobertura de pruebas cumpla los umbrales (80%+)
  • Probar compatibilidad con imagen nativa

Fase 1: Build

# Maven
mvn clean verify -DskipTests

# Gradle
./gradlew clean assemble -x test

Si el build falla, detener y corregir errores de compilación.

Fase 2: Análisis Estático

Checkstyle, PMD, SpotBugs (Maven)

mvn checkstyle:check pmd:check spotbugs:check

SonarQube (si está configurado)

mvn sonar:sonar \
  -Dsonar.projectKey=my-quarkus-project \
  -Dsonar.host.url=http://localhost:9000 \
  -Dsonar.login=${SONAR_TOKEN}

Problemas Comunes a Resolver

  • Importaciones o variables sin usar
  • Métodos complejos (alta complejidad ciclomática)
  • Posibles desreferencias de puntero nulo
  • Problemas de seguridad detectados por SpotBugs

Fase 3: Pruebas + Cobertura

# Ejecutar todas las pruebas
mvn clean test

# Generar reporte de cobertura
mvn jacoco:report

# Exigir umbral de cobertura (80%)
mvn jacoco:check

# O con Gradle
./gradlew test jacocoTestReport jacocoTestCoverageVerification

Categorías de Prueba

Pruebas Unitarias
@ExtendWith(MockitoExtension.class)
class UserServiceTest {
  @Mock UserRepository userRepository;
  @InjectMocks UserService userService;

  @Test
  void createUser_validInput_returnsUser() {
    var dto = new CreateUserDto("Alice", "alice@example.com");

    doNothing().when(userRepository).persist(any(User.class));

    User result = userService.create(dto);

    assertThat(result.name).isEqualTo("Alice");
    verify(userRepository).persist(any(User.class));
  }
}
Pruebas de Integración
@QuarkusTest
@QuarkusTestResource(PostgresTestResource.class)
class UserRepositoryIntegrationTest {

  @Inject
  UserRepository userRepository;

  @Test
  @Transactional
  void findByEmail_existingUser_returnsUser() {
    User user = new User();
    user.name = "Alice";
    user.email = "alice@example.com";
    userRepository.persist(user);

    Optional<User> found = userRepository.findByEmail("alice@example.com");

    assertThat(found).isPresent();
    assertThat(found.get().name).isEqualTo("Alice");
  }
}
Pruebas de API
@QuarkusTest
class UserResourceTest {

  @Test
  void createUser_validInput_returns201() {
    given()
        .contentType(ContentType.JSON)
        .body("""
            {"name": "Alice", "email": "alice@example.com"}
            """)
        .when().post("/api/users")
        .then()
        .statusCode(201)
        .body("name", equalTo("Alice"));
  }

  @Test
  void createUser_invalidEmail_returns400() {
    given()
        .contentType(ContentType.JSON)
        .body("""
            {"name": "Alice", "email": "invalid"}
            """)
        .when().post("/api/users")
        .then()
        .statusCode(400);
  }
}

Reporte de Cobertura

Verificar target/site/jacoco/index.html para cobertura detallada:

  • Cobertura de líneas total (objetivo: 80%+)
  • Cobertura de ramas (objetivo: 70%+)
  • Identificar rutas críticas sin cobertura

Fase 4: Escaneo de Seguridad

Vulnerabilidades de Dependencias (Maven)

mvn org.owasp:dependency-check-maven:check

Revisar target/dependency-check-report.html para CVEs.

Auditoría de Seguridad Quarkus

mvn quarkus:audit
mvn quarkus:list-extensions

OWASP ZAP (Pruebas de Seguridad de API)

docker run -t owasp/zap2docker-stable zap-api-scan.py \
  -t http://localhost:8080/q/openapi \
  -f openapi

Verificaciones de Seguridad Comunes

  • [ ] Todos los secretos en variables de entorno (no en código)
  • [ ] Validación de entrada en todos los endpoints
  • [ ] Autenticación/autorización configurada
  • [ ] CORS correctamente configurado
  • [ ] Cabeceras de seguridad establecidas
  • [ ] Contraseñas hasheadas con BCrypt
  • [ ] Protección contra inyección SQL (consultas parametrizadas)
  • [ ] Limitación de velocidad en endpoints públicos

Fase 5: Compilación Nativa

Probar compatibilidad de imagen nativa GraalVM:

# Construir ejecutable nativo
mvn package -Dnative

# O con contenedor
mvn package -Dnative -Dquarkus.native.container-build=true

# Probar ejecutable nativo
./target/*-runner

# Ejecutar smoke tests básicos
curl http://localhost:8080/q/health/live
curl http://localhost:8080/q/health/ready

Solución de Problemas de Imagen Nativa

Problemas comunes:

  • Reflexión: Agregar config de reflexión para clases dinámicas
  • Recursos: Incluir recursos con quarkus.native.resources.includes
  • JNI: Registrar clases JNI si se usan bibliotecas nativas

Ejemplo de configuración de reflexión:

@RegisterForReflection(targets = {MyDynamicClass.class})
public class ReflectionConfiguration {}

Fase 6: Pruebas de Rendimiento

Prueba de Carga con K6

// load-test.js
import http from 'k6/http';
import { check } from 'k6';

export const options = {
  stages: [
    { duration: '30s', target: 50 },
    { duration: '1m', target: 100 },
    { duration: '30s', target: 0 },
  ],
};

export default function () {
  const res = http.get('http://localhost:8080/api/markets');
  check(res, {
    'status is 200': (r) => r.status === 200,
    'response time < 200ms': (r) => r.timings.duration < 200,
  });
}
k6 run load-test.js

Fase 7: Health Checks

# Liveness
curl http://localhost:8080/q/health/live

# Readiness
curl http://localhost:8080/q/health/ready

# Todos los health checks
curl http://localhost:8080/q/health

# Métricas (si están habilitadas)
curl http://localhost:8080/q/metrics

Fase 8: Build de Imagen de Contenedor

# Construir imagen de contenedor
mvn package -Dquarkus.container-image.build=true

# Escaneo de seguridad del contenedor
trivy image myorg/my-quarkus-app:1.0.0
grype myorg/my-quarkus-app:1.0.0

Fase 9: Validación de Configuración

mvn quarkus:info

Verificaciones por Entorno

  • [ ] URLs de base de datos configuradas por entorno
  • [ ] Secretos externalizados (Vault, variables de entorno)
  • [ ] Niveles de logging apropiados
  • [ ] Orígenes CORS configurados correctamente
  • [ ] Limitación de velocidad configurada
  • [ ] Monitoreo/trazado habilitado

Fase 10: Revisión de Documentación

  • [ ] Docs OpenAPI/Swagger actualizadas (/q/swagger-ui)
  • [ ] README tiene instrucciones de configuración
  • [ ] Cambios de API documentados
  • [ ] Guía de migración para cambios disruptivos

Generar especificación OpenAPI:

curl http://localhost:8080/q/openapi -o openapi.json

Lista de Verificación

Calidad del Código

  • [ ] El build pasa sin advertencias
  • [ ] Análisis estático limpio (sin problemas altos/medios)
  • [ ] El código sigue las convenciones del equipo
  • [ ] Sin código comentado ni TODOs en el PR

Pruebas

  • [ ] Todas las pruebas pasan
  • [ ] Cobertura de código ≥ 80%
  • [ ] Pruebas de integración con base de datos real
  • [ ] Pruebas de seguridad pasan
  • [ ] Rendimiento dentro de límites aceptables

Seguridad

  • [ ] Sin vulnerabilidades en dependencias
  • [ ] Autenticación/autorización probada
  • [ ] Validación de entrada completa
  • [ ] Secretos no en código fuente
  • [ ] Cabeceras de seguridad configuradas

Despliegue

  • [ ] Compilación nativa exitosa
  • [ ] Imagen de contenedor construida
  • [ ] Health checks responden correctamente
  • [ ] Configuración válida para el entorno objetivo

Script de Verificación Automatizado

#!/bin/bash
set -e

echo "=== Fase 1: Build ==="
mvn clean verify -DskipTests

echo "=== Fase 2: Análisis Estático ==="
mvn checkstyle:check pmd:check spotbugs:check

echo "=== Fase 3: Pruebas + Cobertura ==="
mvn test jacoco:report jacoco:check

echo "=== Fase 4: Escaneo de Seguridad ==="
mvn org.owasp:dependency-check-maven:check

echo "=== Fase 5: Compilación Nativa ==="
mvn package -Dnative -Dquarkus.native.container-build=true

echo "=== Todas las Fases Completadas ==="
echo "Revisar reportes:"
echo "  - Cobertura: target/site/jacoco/index.html"
echo "  - Seguridad: target/dependency-check-report.html"

Buenas Prácticas

  • Ejecutar el bucle de verificación antes de cada PR
  • Automatizar en el pipeline CI/CD
  • Corregir problemas inmediatamente; no acumular deuda técnica
  • Mantener cobertura por encima del 80%
  • Actualizar dependencias regularmente
  • Probar compilación nativa periódicamente
  • Monitorear tendencias de rendimiento
  • Documentar cambios disruptivos

Related skills

How it compares

Use quarkus-verification for Quarkus-native full gates; use generic Java test skills when native image and Quarkus-specific build steps are out of scope.

FAQ

When should quarkus-verification run?

quarkus-verification runs before Quarkus pull requests, after major refactors or dependency updates, and before staging or production deploys when full build, test, security, and native compile gates are required.

What steps are in the quarkus-verification loop?

quarkus-verification runs build, static analysis lint, tests with coverage, security scanning, native compilation, and diff review—the full pipeline before merge or deployment on Quarkus services.

Testing & QAbackendtestingintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.