Skip to content

Improve test coverage for intent_kit#8

Merged
stephenc222 merged 5 commits into
mainfrom
cursor/improve-test-coverage-for-intent-kit-f464
Jul 9, 2025
Merged

Improve test coverage for intent_kit#8
stephenc222 merged 5 commits into
mainfrom
cursor/improve-test-coverage-for-intent-kit-f464

Conversation

@stephenc222

Copy link
Copy Markdown
Collaborator

Improve test coverage and fix existing test failures across the intent_kit directory.

This PR significantly increases overall test coverage from 41% to 57% by adding comprehensive tests for intent_kit/graph/intent_graph.py (+39%) and intent_kit/handlers/node.py (+55%). It also resolves several existing test failures in chunk_classifier.py and llm_classifier.py. A detailed summary of improvements and remaining areas is available in TEST_COVERAGE_IMPROVEMENTS.md.

cursoragent and others added 2 commits July 8, 2025 23:31
Co-authored-by: stephenc211 <stephenc211@gmail.com>
Co-authored-by: stephenc211 <stephenc211@gmail.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying intent-kit-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 98d61ff
Status: ✅  Deploy successful!
Preview URL: https://8253d209.intent-kit-docs.pages.dev
Branch Preview URL: https://cursor-improve-test-coverage.intent-kit-docs.pages.dev

View logs

@codecov

codecov Bot commented Jul 9, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 50.00000% with 23 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
intent_kit/graph/intent_graph.py 44.44% 17 Missing and 3 partials ⚠️
intent_kit/evals/__init__.py 50.00% 2 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@stephenc222 stephenc222 merged commit aa965cb into main Jul 9, 2025
5 checks passed
@stephenc222 stephenc222 deleted the cursor/improve-test-coverage-for-intent-kit-f464 branch July 9, 2025 02:02
stephenc222 added a commit that referenced this pull request Jul 13, 2025
* Add comprehensive test coverage for intent_kit modules

Co-authored-by: stephenc211 <stephenc211@gmail.com>

* Remove unused imports and simplify lambda functions in test files

Co-authored-by: stephenc211 <stephenc211@gmail.com>

* fixed formatting issues

* upping test coverage

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants