cpp-test-authoring

Author Serenity BDD and REST Assured tests for HMCTS Crime Common Platform repositories.

3|4|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/hmcts/agentic-plugins-marketplace --skill cpp-test-authoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-test-authoring
Source: https://github.com/hmcts/agentic-plugins-marketplace/tree/main/plugins/agents/hmcts-sdlc-orchestrator/skills/cpp-test-authoring
Command: npx skills add https://github.com/hmcts/agentic-plugins-marketplace --skill cpp-test-authoring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of writing tests for HMCTS CPP repositories, guiding through conventions to ensure consistency.

Core Features & Use Cases

  • UI E2E Test Authoring: Write Serenity BDD/Cucumber tests for the UI E2E Serenity repository.
  • API Test Authoring: Code JUnit 5 + REST Assured API tests in the CPP API tests repository.
  • Feature File Creation: Generate the Gherkin feature files for UI scenarios.
  • Pre-Commit Validation: Validate test code for sensitive data and adherence to coding conventions.
  • Quick Integration: Integrate new tests into the repository using a step-by-step checklist.
  • Use Case: If a team is adding new automated UI or API tests for HMCTS CPP platforms, this Skill provides a framework to follow, ensuring tests align with existing patterns.

Quick Start

Use the cpp-test-authoring skill to generate the Gherkin feature file for a new UI E2E test in the 'cpp-ui-e2e-serenity' repository.

Frequently Asked Questions about cpp-test-authoring

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

FAQPage Schema
How do I write automated UI tests for HMCTS Crime Common Platform repositories?

To write automated UI tests for HMCTS CPP, you author Serenity BDD and Cucumber feature files within the cpp-ui-e2e-serenity repository. This process coordinates test creation and validation to ensure adherence to established coding conventions.

What is the best way to create Gherkin feature files for HMCTS E2E tests?

Creating Gherkin feature files for HMCTS E2E tests involves defining UI scenarios using Cucumber syntax within the Serenity BDD framework. This ensures new test assets integrate quickly with established patterns in the Crime Common Platform repositories.

How do I author API tests using REST Assured and JUnit 5 for HMCTS platforms?

Authoring API tests for HMCTS platforms requires coding JUnit 5 and REST Assured tests within the CPP API tests repository. This ensures your test assets follow established patterns and integrate seamlessly with existing validation checks.

Do I need prior knowledge of Serenity BDD to write tests for the Crime Common Platform?

Yes, writing tests for the Crime Common Platform requires prior knowledge of Serenity BDD, Cucumber, REST Assured, JUnit 5, and HMCTS coding conventions. The framework assumes you understand these technologies to guide test asset creation effectively.

How are automated tests validated before committing to HMCTS repositories?

Automated tests are validated before committing by checking the test code for sensitive data and ensuring strict adherence to HMCTS coding conventions. This pre-commit validation prevents integration issues and maintains repository consistency.

Can I integrate new automated test assets into existing HMCTS repositories?

Yes, you can integrate new automated test assets into existing HMCTS repositories using a step-by-step checklist. This quick integration process ensures new UI and API tests align with established patterns and pass pre-commit validation.