peajes-testing-transformaciones

Tests Excel/CSV transformation pipelines, strategies, and wizard validation for the Peajes engine.

Updated Jan 31, 2023
One-click install
npx skills add https://github.com/Briian3306/Transporte --skill peajes-testing-transformaciones-briian3306
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: peajes-testing-transformaciones
Source: https://github.com/Briian3306/Transporte/tree/main/ibarra-app/.agents/skills/peajes-testing-transformaciones
Command: npx skills add https://github.com/Briian3306/Transporte --skill peajes-testing-transformaciones-briian3306

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing tests for the Peajes Transformation Engine requires knowing which strategies, pipeline rules, and validation constraints (RN-16, RN-18, RN-20, RN-24) to cover, which fixtures to use, and which tooling (Karma/Jasmine, tsx, Supabase pgTAP) applies to each layer. This Skill provides the complete testing strategy, ground-truth data, and file layout so tests are deterministic and consistent. ## Core Features & Use Cases - Unit test patterns: Covers StrategyRegistry, PipelineBuilder, algorithm expanders, and column mapping with concrete I/O cases (e.g., 85557 → 08:55:57, 19.985,09 → 19985.09). - Integration and E2E guidance: Paso 3 wizard TestBed sketches, pipeline verification via tsx scripts, and invoice sum validation against Demo (102060.00) and Autopistas Urbanas (132940.19) fixtures. - Use Case: When adding a unit test for the COMBINAR_COLUMNAS strategy, use the documented Autopistas case (VAR + 02C → VAR-02C) and extend the existing motor.spec.ts instead of inventing new fixtures. ## Quick Start Ask the agent to write unit tests for the transformation strategies in motor.spec.ts using the Demo and Autopistas ground-truth fixtures.

Frequently Asked Questions about peajes-testing-transformaciones

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test the Peajes transformation pipeline?▼

Run unit tests with Karma/Jasmine via `npx ng test --include="**/peajes/**/*.spec.ts" --watch=false`, and verify full pipelines with `npx tsx src/app/components/peajes/plantillas/motor.verify.ts`. Extend existing spec files under plantillas/ and wizard/ rather than creating new frameworks.

What test framework does the Peajes Angular project use?▼

The project uses Karma with Jasmine for unit and integration tests, tsx scripts for pipeline verification, and Supabase CLI with pgTAP for SQL rules. Do not assume Jest, Vitest, or Playwright unless the repo adds them.

How do I test duplicate detection for RN-16 in Angular?▼

RN-16 uniqueness (same pase, fecha_hora, estación, patente) is enforced in SQL and tested with `npx supabase test db`, already covered in supabase/tests/peajes_f01_test.sql. Only test client-side pre-checks in Angular, not the database constraint itself.

Why is there no RELLENAR_CEROS_IZQUIERDA strategy test?▼

RELLENAR_CEROS_IZQUIERDA does not exist in ALGORITMO_CODIGOS. Zero-padding of hours like `85557` → `08:55:57` happens inside FORMATEAR_FECHA_HORA, so test that strategy instead of a phantom registry code.

What are the expected invoice totals for the Demo and Autopistas fixtures?▼

The Demo 10-row preview sums IMPORTE_NETO to 102060.00, and Autopistas Urbanas sums to 132940.19. Validation tests should reject mismatched sums and negative net amounts.