Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

JUnit Parse

quality.junit_parse

ProductionBounded custom (Class B)Deterministicstrictmoderatev1.0.0
File inputNo network

Overview

You send JUnit XML inline or as a tenant-owned file_ref, at most 25 MiB. dialect defaults to AUTO and may be JUNIT4, JUNIT5, SUREFIRE or GRADLE. includeSystemOutput defaults to false; when true, system-out and system-err snippets are capped at 16 KiB per suite. DOCTYPE and external entities are refused. This does not execute tests.

JUnit XML dialects share a shape; a hardened StAX reader turns them into one model without entity expansion.

Reliability

DOCTYPE and external entities are refused. Snippets clip at 16384 characters. JUNIT_XML_INVALID — trigger: XML that is not well-formed JUnit; retryable: no; next: send a testsuite document. JUNIT_XML_UNSAFE — trigger: a DOCTYPE or DTD event; retryable: no; next: send XML without a DTD. JUNIT_XML_LIMIT_EXCEEDED — trigger: more than 25 MiB, 64 nested elements or 10000 cases; retryable: no; next: split the report.

Context footprint

Names, statuses and bounded snippets only. A successful call costs 2 execution credits.

When to use it

When a JUnit, Surefire or Gradle XML report must be normalized.

When the report is already JSON, or when tests still need running.

Powered by a hardened JDK StAX reader with DTD and external entities disabled.

Scope

Note
Parses bounded JUnit-style XML into normalized suites, cases and totals.

Non-goals

  • Does not execute tests
  • Does not fetch attachments
  • Does not parse arbitrary XML

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

analysisvalidation

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call2 credits

File handling

Accepts file_refProduces file_refMax input25 MBMax file size25 MB

File limits

Constraints this skill applies to your input and generated files. The “Limited by” column shows the static source of each cap; none of these can be raised by upgrading your plan.

LimitValueLimited by
Maximum size per input file25 MiBSkill and platform maximum

How we handle your data

Sensitive processing
What this means

This skill is designed to detect, mask, redact, validate, or otherwise process sensitive data.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • Targets sensitive data
  • The response does not contain submitted content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
sourceobjectYesClosed XML source: type inline with content, or type file_ref with a tenant-owned ref.
dialectstringNoAUTO, JUNIT4, JUNIT5, SUREFIRE or GRADLE; omit it for AUTO detection from the XML.
includeSystemOutputbooleanNoWhen true, keep 16 KiB system-out and system-err snippets per suite; omit it for false.

Output schema

FieldTypeRequiredDescription
dialectstringYesDialect that was actually applied after AUTO detection.
requestedDialectstringYesDialect that was requested, including AUTO.
suitesarrayYesNormalized suites in document order, 1 through 10000 closed suite objects with name, cases and per-suite counts.
totalsobjectYesClosed aggregate tests, passed, failed, skipped and errors counts.
diagnosticsarrayYesParse notes in a stable order; empty when the document was accepted as-is.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"quality.junit_parse","input":{"source":{"type":"inline","content":"<testsuite name=\"BillingSuite\"><testcase name=\"ok\" time=\"0.01\"/></testsuite>"}}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("quality.junit_parse", {"source":{"type":"inline","content":"<?xml version=\"1.0\"?>\n<testsuite name=\"BillingSuite\" tests=\"2\" failures=\"1\" time=\"0.016\">\n  <testcase name=\"chargesInvoice\" classname=\"BillingTest\" time=\"0.012\"/>\n  <testcase name=\"rejectsVoid\" classname=\"BillingTest\" time=\"0.004\">\n    <failure message=\"expected 402\">AssertionError</failure>\n  </testcase>\n</testsuite>\n"}});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.
JUNIT_XML_INVALID400NoThe request payload failed this skill's input validation.
JUNIT_XML_UNSAFE400NoThe request payload failed this skill's input validation.
JUNIT_XML_LIMIT_EXCEEDED429NoA size, quota, rate, or time limit was exceeded.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not execute tests
  • Does not fetch attachments
  • Does not parse arbitrary XML
  • Executing the suite
  • Parsing a coverage XML report

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "quality.junit_parse",
  "input": {
    "source": {
      "type": "inline",
      "content": "<?xml version=\"1.0\"?>\n<testsuite name=\"BillingSuite\" tests=\"2\" failures=\"1\" time=\"0.016\">\n  <testcase name=\"chargesInvoice\" classname=\"BillingTest\" time=\"0.012\"/>\n  <testcase name=\"rejectsVoid\" classname=\"BillingTest\" time=\"0.004\">\n    <failure message=\"expected 402\">AssertionError</failure>\n  </testcase>\n</testsuite>\n"
    }
  }
}

Examples

A suite with one pass and one failure totals two tests

Inputjson
{
  "source": {
    "type": "inline",
    "content": "<?xml version=\"1.0\"?>\n<testsuite name=\"BillingSuite\" tests=\"2\" failures=\"1\" time=\"0.016\">\n  <testcase name=\"chargesInvoice\" classname=\"BillingTest\" time=\"0.012\"/>\n  <testcase name=\"rejectsVoid\" classname=\"BillingTest\" time=\"0.004\">\n    <failure message=\"expected 402\">AssertionError</failure>\n  </testcase>\n</testsuite>\n"
  }
}
Expected outputjson
{
  "totals": {
    "tests": 2,
    "passed": 1,
    "failed": 1,
    "skipped": 0,
    "errors": 0
  },
  "dialect": "JUNIT4",
  "diagnostics": [],
  "suites": [
    {
      "name": "BillingSuite",
      "cases": [
        {
          "name": "chargesInvoice",
          "className": "BillingTest",
          "status": "PASSED",
          "durationMs": 12
        },
        {
          "name": "rejectsVoid",
          "className": "BillingTest",
          "status": "FAILED",
          "durationMs": 4,
          "message": "expected 402",
          "stack": "AssertionError"
        }
      ],
      "tests": 2,
      "passed": 1,
      "failed": 1,
      "skipped": 0,
      "errors": 0
    }
  ],
  "requestedDialect": "AUTO"
}
Tip
rejectsVoid is FAILED and totals.failed is 1.

A skipped testcase maps to SKIPPED

Inputjson
{
  "source": {
    "type": "inline",
    "content": "<?xml version=\"1.0\"?>\n<testsuite name=\"SkipSuite\" tests=\"1\" skipped=\"1\" time=\"0\">\n  <testcase name=\"ignoredOnCi\" classname=\"SkipTest\" time=\"0\">\n    <skipped message=\"not on CI\"/>\n  </testcase>\n</testsuite>\n"
  }
}
Expected outputjson
{
  "totals": {
    "tests": 1,
    "passed": 0,
    "failed": 0,
    "skipped": 1,
    "errors": 0
  },
  "dialect": "JUNIT4",
  "diagnostics": [],
  "suites": [
    {
      "name": "SkipSuite",
      "cases": [
        {
          "name": "ignoredOnCi",
          "className": "SkipTest",
          "status": "SKIPPED",
          "durationMs": 0,
          "message": "not on CI"
        }
      ],
      "tests": 1,
      "passed": 0,
      "failed": 0,
      "skipped": 1,
      "errors": 0
    }
  ],
  "requestedDialect": "AUTO"
}
Tip
ignoredOnCi is SKIPPED and totals.skipped is 1.
  • Turn a Surefire XML file into stable statuses
  • Read a skipped JUnit case

Avoid for

  • Executing the suite
  • Parsing a coverage XML report

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

validationquality