test-enforcement
Skill15k starsChanged 3 months agoApache-2.0View on GitHub
Use after implementing any feature or fix to ensure comprehensive test coverage. Enforces 90% line coverage in openmetadata-service, integration tests for all API endpoints in openmetadata-integration-tests, and Playwright E2E tests for UI changes.
Trending
Less talk lately.about the whole repository
Who's talking about open-metadata/OpenMetadata
- MunGell/awesome-for-beginners“Add OpenMetadata”GitHub · Sep 13, 2022 · 13 reactions
- @camilleroux.com“OpenMetadata : une plateforme open source unifiée pour la data discovery, l'observabilité et la gouvernance …”Bluesky · May 2, 2026 · 5 likes
- A Hacker News story“OpenMetadata: Open Standard for Metadata”Hacker News · May 24, 2022 · 4 points
- microsoft/vscode-java-debug“Run & Debug Multi-Module Dropwizard Application in VSCode”GitHub · Feb 21, 2024 · 2 reactions
- dataform-co/dataform“Feature Request: Integration with Open Metadata”GitHub · Feb 17, 2023 · 2 reactions
The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 40
Talked about on GitHub, Bluesky and Hacker News (40 times).
On GitHub · 29
- Sep 13, 2022Add OpenMetadata — MunGell/awesome-for-beginners13 reactions
- Feb 21, 2024Run & Debug Multi-Module Dropwizard Application in VSCode — microsoft/vscode-java-debug2 reactions · 2 comments
- Feb 17, 2023Feature Request: Integration with Open Metadata — dataform-co/dataform2 reactions · 1 comment
- Oct 6, 2026agent-skills.github.open-metadata.openmetadata: 2.0.3-release → 2.0.4-release — sudosubin/agents.nix0 reactions
- Oct 5, 2026chore(deps): bump openmetadata-ingestion from 1.13.3.2 to 2.0.3.0 — GovHub-br/data-application-minc0 reactions
24 more on GitHub
- Oct 3, 2026agent-skills.github.open-metadata.openmetadata: 2.0.2-release → 2.0.3-release — sudosubin/agents.nix0 reactions
- Sep 30, 2026agent-skills.github.open-metadata.openmetadata: init at 2.0.2-release — sudosubin/agents.nix0 reactions
- Sep 15, 2026Docs: Add release notes for 1.13.6 — open-metadata/docs-om0 reactions · 2 comments
- Sep 11, 2026support OpenMetadata — risingwavelabs/risingwave0 reactions
- Sep 3, 2026Docs: Add release notes for 1.13.5 release — open-metadata/docs-om0 reactions
- Aug 24, 2026Sync OpenMetadata Standards with 2.0.0 — open-metadata/OpenMetadataStandards0 reactions
- Aug 24, 2026openmetadata-dependencies: remove obsolete Airflow FAB downgrade — open-metadata/openmetadata-helm-charts0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in /custom-connector in the custom-connector-python group — open-metadata/openmetadata-demo0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in /api-lineage-cicd in the api-lineage-python group — open-metadata/openmetadata-demo0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in /dynamic_csv_importer in the dynamic-csv-python group — open-metadata/openmetadata-demo0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in the sdk-facade-python group — open-metadata/openmetadata-demo0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in /custom-graphql in the custom-graphql-python group — open-metadata/openmetadata-demo0 reactions
- Aug 17, 2026chore(deps): bump openmetadata-ingestion from 2.0.0.0rc1 to 2.0.0.0rc2 in /ingestion-automation in the ingestion-automation-python group — open-metadata/openmetadata-demo0 reactions
- Jun 25, 2026[GHSA-5f29-2333-h9c7] OpenMetadata's Server-Side Template Injection (SSTI) in FreeMarker email templates leads to RCE — github/advisory-database0 reactions · 3 comments
- Apr 25, 2026Check trending repo: open-metadata/OpenMetadata — uibm/trending-watcher0 reactions · 2 comments
- Apr 24, 2026Check trending repo: open-metadata/OpenMetadata — uibm/trending-watcher0 reactions · 2 comments
- Apr 23, 2026Check trending repo: open-metadata/OpenMetadata — uibm/trending-watcher0 reactions · 2 comments
- Apr 22, 2026[P2-16] Upstream Hackathon GFI — nishanthatgit/openmetadata-pulse0 reactions
- Dec 22, 2025Redshift Serverless: Support of SYS views to fetch queries — open-metadata/docs-v1-legacy0 reactions · 1 comment
- Jan 8, 2025[Recommendation Needed] Production ready Open lineage application — OpenLineage/OpenLineage0 reactions · 5 comments
- Apr 24, 2024OpenMetadata 身份验证绕过漏洞(CVE-2024-28255) — foyaga/blog-timeline0 reactions
- Feb 6, 2023Make suggest edits button work — open-metadata/docs0 reactions · 1 comment
- Jun 13, 2022Add OpenMetadata — mgramin/awesome-db-tools0 reactions
- Mar 30, 2022Refactor & Clean up unnecessary methods — open-metadata/openmetadata-airflow-apis0 reactions
On Bluesky · 10
- May 2, 2026OpenMetadata : une plateforme open source unifiée pour la data discovery, l'observabilité et la gouvernance des données — avec du lineage… — @camilleroux.com5 likes and reposts · 1 reply
- Apr 24, 2026今日のGitHubトレンド open-metadata/OpenMetadata OpenMetadataは、データの発見、観測、ガバナンスを統合的に管理するメタデータプラットフォームです。… — @dailygithubtrends.bsky.social1 likes and repost
- Apr 23, 2026OpenMetadata : découverte, observabilité et gouvernance des données unifiées — @news.humancoders.com1 likes and repost
- Apr 22, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 open-metadata / OpenMetadata ⭐ 11,886 (+609) 🗒 TypeScript OpenMetadata is a unified metadata… — @github-trending.bsky.social1 likes and repost · 1 reply
- Apr 12, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 open-metadata / OpenMetadata ⭐ 10,245 (+162) 🗒 TypeScript OpenMetadata is a unified metadata platform… — @github-trending-js.bsky.social1 likes and repost
5 more on Bluesky
- Feb 27, 2026https://github.com/open-metadata/OpenMetadata — @tom-doerr.bsky.social1 likes and repost
- Dec 30, 2024After reading a lot about Data Mesh in the past years, I’ve decided to put it in practice and test different tools during the holidays… — @fabridinapoli.com1 likes and repost
- Nov 22, 2023📦 open-metadata / OpenMetadata ⭐ 3,144 (+91) 🗒 TypeScript Open Standard for Metadata. A Single place to Discover, Collaborate and Get… — @github-trending-js.bsky.social1 likes and repost
- Apr 22, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 open-metadata / OpenMetadata ⭐ 11,887 (+609) 🗒 TypeScript OpenMetadata is a unified metadata… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Apr 3, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 open-metadata / OpenMetadata ⭐ 9,542 (+299) 🗒 TypeScript OpenMetadata is a unified metadata… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- May 24, 2022OpenMetadata: Open Standard for Metadata4 points
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/vendor/composition-patterns/AGENTS.mdAGENTS.md
- skills/vendor/react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- openmetadata-ui-core-components/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- connector-auditSkill
- scaffold-connectorSkill
- connector-reviewSkill
- connector-standardsSkill
- dev-setupSkill
- java-checkstyleSkill
- openmetadata-pr-reviewSkill
- openmetadata-workflowSkill
- planningSkill
- playwright-testSkill
- playwright-validationSkill
- pr-checklistSkill
- systematic-debuggingSkill
- tddSkill
- test-locallySkill
- ui-checkstyleSkill
- ui-core-componentsSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- web-design-guidelinesSkill
- verificationSkill
- writing-playwright-testsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 17 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Ensure every code change has comprehensive tests — 90% line coverage for service code, integration tests for APIs, and Playwright E2E tests …
- Distinctive: line 14
After implementing any feature or bug fix (before creating a PR)
- Distinctive: line 15
When reviewing a PR to check test completeness
- Very specific: line 16
When the /tdd skill was not used during implementation
- Distinctive: line 70
After running tests, check the JaCoCo report for the specific classes you changed:
- Distinctive: line 83
If coverage is below 90%, create tests following these patterns:
- Distinctive: line 86
Test public methods with meaningful inputs
- Distinctive: line 87
Test edge cases: null inputs, empty collections, boundary values
- Distinctive: line 88
Test error paths: invalid input, missing data, permission denied
- Very specific: line 89
Use descriptive test names: testCreateEntityWithValidInput, testDeleteEntityNotFound
- Distinctive: line 93
Test obvious getters/setters
- Distinctive: line 94
Write tests that only verify mock wiring
- Very specific: line 117
Every REST resource should have a corresponding *IT.java that tests:
- Very specific: line 150
Use TestNamespace for test isolation (not TestInfo)
- Very specific: line 151
Use OpenMetadataClient SDK for API calls
- Distinctive: line 152
Use typed exceptions, not raw HTTP status codes
- Distinctive: line 153
Create entities via API, assert on API responses
- Distinctive: line 158
If an API endpoint lacks integration test coverage:
- Very specific: line 160
Read the existing BaseEntityIT to understand the contract
- Distinctive: line 161
Read a similar entity's IT class as a reference pattern
- Distinctive: line 162
Create the IT class with all CRUD operations tested
- Distinctive: line 163
Add entity-specific endpoint tests
- Distinctive: line 206
Only internal refactoring with no visible behavior change
- Very specific: line 212
Use the /playwright skill to generate tests.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test Enforcement for OpenMetadata
Ensure every code change has comprehensive tests — 90% line coverage for service code, integration tests for APIs, and Playwright E2E tests for UI changes.
When to Use
- After implementing any feature or bug fix (before creating a PR)
- When reviewing a PR to check test completeness
- When the
/tddskill was not used during implementation
Workflow
Step 1: Identify Changed Files
Determine what changed and classify by layer:
# Branch changes
git diff main...HEAD --name-only
# Or staged changes
git diff --cached --name-only
# Or PR changes
gh pr diff <number> --name-onlyClassify each changed file:
| File path pattern | Layer | Required tests |
openmetadata-service/src/main/ | Java backend | Unit tests (90% coverage) + integration tests |
openmetadata-spec/src/main/resources/json/schema/ | Schema | Regeneration verification + downstream tests |
openmetadata-integration-tests/ | Integration tests | Self — verify they pass |
ingestion/src/metadata/ | Python ingestion | pytest unit tests (90% coverage) |
openmetadata-ui/.../ui/src/ | React frontend | Jest unit tests + Playwright E2E |
bootstrap/sql/migrations/ | Database | Integration tests verifying migration |
Step 2: Check Java Service Coverage
For any changes under openmetadata-service/src/main/:
2a. Find existing tests
# For a changed class Foo.java, find its test
CHANGED_CLASS="Foo"
find openmetadata-service/src/test -name "${CHANGED_CLASS}Test.java" -o -name "${CHANGED_CLASS}Tests.java"
# Also check integration tests
find openmetadata-integration-tests/src/test -name "*${CHANGED_CLASS}*IT.java"2b. Run coverage for the module
mvn test -pl openmetadata-service -P static-code-analysis -Dtest=<TestClass>
# Coverage report: openmetadata-service/target/site/jacoco/index.html2c. Verify 90% line coverage for changed code
After running tests, check the JaCoCo report for the specific classes you changed:
# Parse the JaCoCo XML report for specific classes
REPORT="openmetadata-service/target/site/jacoco/jacoco.xml"
# Look for coverage of your specific packages/classes
grep -A5 "name=\"YourClassName\"" "$REPORT"Target: 90% line coverage on all changed/new classes.
2d. Generate missing tests
If coverage is below 90%, create tests following these patterns:
Unit tests (openmetadata-service/src/test/):
- Test public methods with meaningful inputs
- Test edge cases: null inputs, empty collections, boundary values
- Test error paths: invalid input, missing data, permission denied
- Use descriptive test names:
testCreateEntityWithValidInput,testDeleteEntityNotFound
Do NOT:
- Mock internal OpenMetadata classes — write integration tests instead
- Test obvious getters/setters
- Write tests that only verify mock wiring
Step 3: Check Integration Tests for API Endpoints
For any changes to REST resources or entity logic:
3a. Map changed code to API endpoints
# Find resource classes that changed
git diff main...HEAD --name-only | grep -E "Resource\.java$"
# Find the @Path annotations to identify endpoints
grep -n "@Path" <resource-file>3b. Check existing integration tests
# Integration test naming convention: <Entity>IT.java
find openmetadata-integration-tests/src/test -name "*IT.java" | sortEvery REST resource should have a corresponding *IT.java that tests:
| Operation | What to test |
| Create | Valid creation, duplicate handling, missing required fields |
| Get | By ID, by name, with fields parameter, not found |
| List | Pagination, filtering, sorting, limit |
| Update (PUT) | Full update, partial update, version increment |
| Patch | JSON patch operations, concurrent modification |
| Delete | Soft delete, hard delete, cascade behavior |
| Custom endpoints | Any non-CRUD endpoints specific to the entity |
3c. Verify integration tests use the current patterns
Tests must follow these patterns:
// Extend BaseEntityIT for entity resources
class MyEntityIT extends BaseEntityIT<MyEntity, CreateMyEntity> {
@Override
protected CreateMyEntity createMinimalRequest(TestNamespace testNamespace) {
// Return minimal valid create request
}
@Test
void testCustomBehavior(TestNamespace testNamespace) {
// Test entity-specific behavior
}
}Key patterns:
- Use
TestNamespacefor test isolation (notTestInfo) - Use
OpenMetadataClientSDK for API calls - Use typed exceptions, not raw HTTP status codes
- Create entities via API, assert on API responses
- Clean up created entities in test teardown
3d. Generate missing integration tests
If an API endpoint lacks integration test coverage:
- Read the existing
BaseEntityITto understand the contract - Read a similar entity's IT class as a reference pattern
- Create the IT class with all CRUD operations tested
- Add entity-specific endpoint tests
- Run and verify:
mvn verify -pl openmetadata-integration-tests -Dtest=MyEntityIT
Step 4: Check Playwright E2E Tests
For any changes under openmetadata-ui/src/main/resources/ui/src/:
4a. Identify UI features affected
Map changed components to user-facing features:
# What components changed?
git diff main...HEAD --name-only | grep -E '\.(tsx?|component\.tsx)$'
# What pages/features do they belong to?
# Check the component's imports and route usage4b. Check existing Playwright coverage
# Find specs that test the affected feature
find openmetadata-ui/src/main/resources/ui/playwright/e2e -name "*.spec.ts" | xargs grep -l "<feature-keyword>"
# List all spec files by category
ls openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/
ls openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/
ls openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/4c. Determine if new Playwright tests are needed
New Playwright tests ARE needed when:
- A new page or major UI section was added
- User-facing workflow was changed (e.g., entity creation flow)
- New permissions or role-based behavior was added
- A UI bug was fixed (regression test)
New Playwright tests are NOT needed when:
- Only internal refactoring with no visible behavior change
- Style-only changes (colors, spacing)
- Changes already covered by existing specs (verify by running them)
4d. Generate missing Playwright tests
Use the /playwright skill to generate tests. At minimum, verify:
- Read the Playwright Developer Handbook first:
openmetadata-ui/src/main/resources/ui/playwright/PLAYWRIGHT_DEVELOPER_HANDBOOK.md - Required test coverage for new features:
- Happy path — feature works as expected
- Permission boundaries — admin vs. data consumer vs. data steward
- Data persistence — changes survive page reload
- Error states — invalid input, network errors
- Navigation — feature accessible from expected entry points
- Run and verify:
cd openmetadata-ui/src/main/resources/ui yarn playwright:run --grep "<test name>" - Run the linter:
yarn lint:playwright
Step 5: Check Jest Unit Tests for Frontend
For component changes, verify Jest coverage:
cd openmetadata-ui/src/main/resources/ui
# Run tests for changed files with coverage
yarn test --coverage --collectCoverageFrom='src/path/to/changed/**/*.{ts,tsx}' path/to/test.spec.ts
# Check coverage report
# Lines, branches, functions should be >= 90%Every component should have a co-located .test.ts or .test.tsx file.
Step 6: Check Python Ingestion Tests
For changes under ingestion/src/metadata/:
source env/bin/activate && cd ingestion
# Find tests for changed modules
CHANGED="my_module"
find tests/unit -name "*${CHANGED}*" -o -name "*test_${CHANGED}*"
# Run with coverage for specific modules
python -m pytest tests/unit/path/to/test.py -v --cov=metadata.ingestion.source.database.my_module --cov-report=term-missing
# Verify >= 90% coverageStep 7: Generate Coverage Report
Produce a summary for the PR:
## Test Coverage Report
### Java Service (openmetadata-service)
| Class | Lines | Branches | Status |
|-------|-------|----------|--------|
| NewFeature.java | 92% | 85% | PASS |
| ModifiedClass.java | 88% | 80% | NEEDS WORK |
### Integration Tests (openmetadata-integration-tests)
| Endpoint | Create | Get | List | Update | Delete | Custom |
|----------|--------|-----|------|--------|--------|--------|
| /api/v1/myEntity | PASS | PASS | PASS | PASS | PASS | PASS |
### Playwright E2E
| Feature | Happy Path | Permissions | Persistence | Status |
|---------|------------|-------------|-------------|--------|
| New Feature Page | PASS | PASS | PASS | PASS |
### Python Ingestion
| Module | Lines | Status |
|--------|-------|--------|
| my_connector/metadata.py | 94% | PASS |
### Overall: [PASS / FAIL]Coverage Targets
| Layer | Metric | Target | How to measure |
| openmetadata-service | Line coverage | 90% | JaCoCo with -P static-code-analysis |
| openmetadata-integration-tests | API endpoint coverage | 100% of changed endpoints | Manual check against resource classes |
| Playwright | Feature coverage | All new/changed user-facing flows | Spec file existence + test pass |
| Jest | Component coverage | 90% lines | yarn test --coverage |
| Python ingestion | Line coverage | 90% | pytest --cov |
Quick Reference: Test File Locations
openmetadata-service/src/test/java/org/openmetadata/ # Java unit tests
openmetadata-integration-tests/src/test/java/org/openmetadata/it/ # Integration tests
openmetadata-ui/.../ui/src/**/*.test.{ts,tsx} # Jest unit tests
openmetadata-ui/.../ui/playwright/e2e/ # Playwright E2E
ingestion/tests/unit/ # Python unit tests
ingestion/tests/integration/ # Python integration testsDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

