build-test-report

Run Maven builds and tests, outputting structured JSON results.

4|Updated Sep 25, 2025
One-click install
npx skills add https://github.com/cowwoc/styler --skill build-test-report
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-test-report
Source: https://github.com/cowwoc/styler/tree/main/.claude/skills/build-test-report
Command: npx skills add https://github.com/cowwoc/styler --skill build-test-report

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Run Maven build and tests in a single atomic operation with structured reporting, reducing LLM round-trips.

Core Features & Use Cases

  • Atomic build+test: Executes build and test suites in one coordinated step.
  • Structured output: Returns JSON with build and test results for programmatic processing.
  • Overhead reduction: Significantly fewer LLM interactions compared to multi-step workflows.

Quick Start

Basic Build and Test

/workspace/main/.claude/scripts/build-test-report.sh

Compile Only (Skip Tests)

/workspace/main/.claude/scripts/build-test-report.sh --skip-tests

With Maven Profile and Module

/workspace/main/.claude/scripts/build-test-report.sh --module formatter --skip-tests --profile dev

Frequently Asked Questions about build-test-report

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

FAQPage Schema
How do I run Maven builds and tests together with structured output?

Build-test-report automates Maven build and test execution in a single atomic operation, returning JSON results with status, durations, and test outcomes. Run the script with `/workspace/main/.claude/scripts/build-test-report.sh` to execute both steps coordinated and receive programmatic output.

Can I skip tests or run specific Maven profiles and modules?

Yes. The script accepts flags like `--skip-tests` to compile only, `--profile` to select Maven profiles, and `--module` to target specific modules. Combine flags in one command: `build-test-report.sh --module formatter --profile dev --skip-tests`.

What does atomic build and test execution mean for CI workflows?

Atomic execution runs the full build and test cycle as a single coordinated step, ensuring consistency and eliminating partial states. This reduces round-trips between build and test phases, making it ideal for local pre-commit validation and CI-like checks without orchestrating separate commands.

Why use structured JSON output instead of running Maven directly?

Structured JSON output consolidates build and test results—including status, timing, and outcomes—into one machine-readable payload. This eliminates parsing unstructured logs, reduces LLM interaction overhead, and integrates easily with downstream reporting and automation tools.

What are the prerequisites to run build-test-report?

You need Bash and a Maven wrapper available in your project. The script works with any Maven-based project structure and supports flags for customizing the build scope. No additional dependencies beyond the standard Maven toolchain are required.

Does build-test-report work for module-specific or profile-based builds?

Yes. Use `--module` to target specific modules and `--profile` to activate Maven profiles, allowing you to run partial builds and tests without executing the entire project suite. This is useful for focused verification during development.