e2e-develop-guide

Explain and extend LoongCollector's E2E testing framework with Go-based scenario registration.

2.2k|444|Updated Nov 8, 2021
One-click install
npx skills add https://github.com/alibaba/loongcollector --skill e2e-develop-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: e2e-develop-guide
Source: https://github.com/alibaba/loongcollector/tree/main/.cursor/skills/e2e-develop-guide
Command: npx skills add https://github.com/alibaba/loongcollector --skill e2e-develop-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Help engineers understand and extend LoongCollector's E2E testing framework.

Core Features & Use Cases

  • Architecture overview of the E2E framework and its components.
  • How to implement and register new test behaviors in Go (Given/When/Then) with the described patterns.
  • Comprehensive references to existing testing capabilities and example scenarios, including multi-environment testing.
  • Use Case: When adding custom plugin tests or extending coverage, this guide helps you design and implement new tests consistently.

Quick Start

Set up a local E2E environment following the development guide and begin implementing new test behaviors.

Frequently Asked Questions about e2e-develop-guide

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

FAQPage Schema
How do I implement and register new E2E test behaviors in Go for LoongCollector?

To implement and register new E2E test behaviors in Go, you extend LoongCollector's BDD testing framework by writing Given/When/Then scenario functions and registering them through the Go-based registration workflows. This ensures consistent integration with the end-to-end testing architecture.

What is the architecture of the LoongCollector E2E testing framework?

The LoongCollector E2E testing framework architecture provides a comprehensive overview of its components, engine constructs, and feature files. It defines how behavior functions interact with multi-environment testing capabilities to validate end-to-end quality across different deployment scenarios.

Do I need Go and BDD familiarity to extend LoongCollector E2E tests?

Yes, extending LoongCollector E2E tests requires familiarity with Go-based scenario registration processes and BDD patterns. You must understand engine constructs and feature files to properly design and implement new custom plugin tests within the framework.

How to set up a local E2E environment for LoongCollector plugin testing?

To set up a local E2E environment for LoongCollector plugin testing, follow the development guide to configure the testing framework and its multi-environment capabilities. This local setup enables you to begin implementing new test behaviors consistently.

When should I use the LoongCollector E2E framework instead of standard unit tests?

Use the LoongCollector E2E framework when adding custom plugin tests or extending coverage to validate end-to-end quality across multi-environment scenarios. It is specifically designed for BDD-style behavior validation rather than isolated code unit testing.

What existing testing capabilities and example scenarios are available for LoongCollector?

LoongCollector provides comprehensive references to existing testing capabilities and example scenarios, including multi-environment testing support. These references guide engineers in designing and implementing new tests consistently within the E2E architecture.