semoss-testing-ci

Set up JUnit 5 tests, pre-commit hooks, and GitHub Actions for SEMOSS.

2|Updated Aug 6, 2025
One-click install
npx skills add https://github.com/SEMOSS/Template --skill semoss-testing-ci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semoss-testing-ci
Source: https://github.com/SEMOSS/Template/tree/main/.claude/skills/semoss-testing-ci
Command: npx skills add https://github.com/SEMOSS/Template --skill semoss-testing-ci

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires junit-jupiter, junit-platform-suite, mockito-core, husky, lint-staged, pre-commit, and includes references (resource) components.

What problem does it solve?

This skill solves the lack of standardized testing and CI/CD infrastructure in new SEMOSS projects by providing a battle-tested, modular scaffolding for Java reactor unit tests, pre-commit hooks, and GitHub Actions workflows.

Core Features & Use Cases

  • Java Reactor Testing: Provides a robust BaseReactorTest class with pre-configured mocks for Insight, User, and PyTranslator to enable rapid JUnit 5 and Mockito testing.
  • Automated Quality Gates: Includes a pre-commit framework configuration and Husky hooks to enforce code formatting and linting before commits.
  • CI/CD Integration: Offers ready-to-use GitHub Actions workflows for automated linting and Maven-based unit testing.

Quick Start

Ask the assistant to initialize the testing and CI suite by copying the reference files into the project and applying the necessary pom.xml and package.json updates.

Frequently Asked Questions about semoss-testing-ci

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

FAQPage Schema
How do I set up JUnit 5 unit tests for Java reactors in SEMOSS?

You can initialize the framework by copying reference files into your project and updating pom.xml and package.json. This provides a BaseReactorTest class with pre-configured Mockito mocks for rapid JUnit 5 testing.

What's the best way to automate linting and formatting before committing SEMOSS code?

The best way to automate linting is by using the included Husky pre-commit hooks and lint-staged configuration. This enforces code formatting and quality gates automatically before commits are finalized.

Does this testing framework support GitHub Actions for Maven-based continuous integration?

Yes, this framework supports GitHub Actions for continuous integration by providing ready-to-use workflows that automate Maven-based unit testing and linting pipelines for your repository.

How does Mockito mock testing work with SEMOSS Java reactor components?

Mockito mock testing works by providing a BaseReactorTest class with pre-configured mocks for Insight, User, and PyTranslator. This isolates Java reactor logic for rapid JUnit 5 unit testing.

Why do I need pre-commit hooks and continuous integration for robust software development?

You need pre-commit hooks and continuous integration to enforce standardized code quality gates and automated Maven testing. This prevents unformatted or broken code from entering the repository.