-
Notifications
You must be signed in to change notification settings - Fork 2
Add basic test cases and workflows for the Moesif extension #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds comprehensive test coverage for the Moesif extension by introducing unit tests for Java components and Ballerina integration tests. The tests validate the core functionality of the extension including tracer provider behavior, rate limiting sampler, and configuration handling.
- Adds Java unit tests for
RateLimitingSamplerandMoesifTracerProviderclasses - Creates Ballerina test suites for tracer provider functionality with mock external method calls
- Introduces GitHub Actions workflows for CI/CD including pull request validation, daily builds, and release publishing
Reviewed Changes
Copilot reviewed 21 out of 22 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/src/test/java/io/ballerina/observe/trace/moesif/sampler/RateLimitingSamplerTest.java | Comprehensive unit tests for the RateLimitingSampler class covering constructor validation, sampling behavior, and parameter handling |
| tests/src/test/java/io/ballerina/observe/trace/moesif/MoesifTracerProviderTest.java | Unit tests for MoesifTracerProvider including name validation, initialization behavior, and propagator configuration |
| tests/build.gradle | Gradle configuration for running Java unit tests with proper dependencies and coverage reporting |
| native/build.gradle | Updates native module build to include JUnit 5 test dependencies and configuration |
| ballerina/tests/tracer_provider_test.bal | Ballerina test suite for tracer provider logic with mock external method calls and configuration validation |
| ballerina/Dependencies.toml | Updated dependencies to include test framework support |
| ballerina-tests/ | Complete integration test project structure with server tests, configuration files, and build setup |
| .github/workflows/ | GitHub Actions workflows for CI/CD including pull request validation, builds, and publishing |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
Purpose
Add basic test cases and workflows for the Moesif extension