run-tests

Execute Maven tests with options for modules, classes, methods and LIVE/RECORD/PLAYBACK modes.

2.6k|2.2k|Updated Dec 6, 2011
One-click install
npx skills add https://github.com/Azure/azure-sdk-for-java --skill run-tests-azure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-tests
Source: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/ai/.workflow_docs/run-tests
Command: npx skills add https://github.com/Azure/azure-sdk-for-java --skill run-tests-azure

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the execution of project tests using the Maven build tool, ensuring code quality and identifying regressions.

Core Features & Use Cases

  • Execute All Tests: Run the entire test suite for a Maven project.
  • Targeted Testing: Run tests for specific modules, classes, or methods.
  • Test Modes: Support for LIVE, RECORD, and PLAYBACK testing environments.
  • Troubleshooting: Provides flags to resolve common build and test execution issues.
  • Use Case: When a developer commits code, this Skill can be invoked to run all relevant tests to verify the changes before merging.

Quick Start

Use the run-tests skill to execute all tests in the current Maven project.

Frequently Asked Questions about run-tests

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

FAQPage Schema
How do I run Maven tests for a specific module or class?

Maven test execution supports targeted runs for specific modules, classes, or methods. This allows developers to isolate and verify individual code changes quickly without executing the entire project test suite.

What do I do when Maven build plugin blocks or JPMS errors interrupt test execution?

Maven build and test execution issues like JPMS errors, build plugin blocks, and SSL handshake failures can be resolved using specific troubleshooting flags provided during the test run command.

Does Maven test automation support LIVE, RECORD, and PLAYBACK modes?

Maven test automation supports LIVE, RECORD, and PLAYBACK testing environments. These modes allow you to execute real-time tests or replay recorded interactions to verify code behavior consistently.

Why use Maven to automate Java project test execution?

Automating Java project test execution with Maven ensures code quality and identifies regressions early. It streamlines the CI/CD pipeline by automatically verifying changes before merging code into the main branch.

Can I troubleshoot SSL handshake failures during Maven test runs?

SSL handshake failures during Maven test runs can be addressed using built-in troubleshooting flags. These flags help bypass or configure SSL issues to ensure continuous test execution and build success.