-
Notifications
You must be signed in to change notification settings - Fork 1
Expand test coverage #182
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
base: main
Are you sure you want to change the base?
Expand test coverage #182
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -29,6 +29,9 @@ optional-dependencies.dev = [ | |||||||||||||||||||||||||||||||||||||||||||||
| "pytest~=8.3.5", | ||||||||||||||||||||||||||||||||||||||||||||||
| "pytest-asyncio~=0.26.0", | ||||||||||||||||||||||||||||||||||||||||||||||
| "pytest-dotenv~=0.5.2", | ||||||||||||||||||||||||||||||||||||||||||||||
| "pytest-cov>=4.1.0", | ||||||||||||||||||||||||||||||||||||||||||||||
| "coverage[toml]>=7.3.0", | ||||||||||||||||||||||||||||||||||||||||||||||
| "pytest-html>=4.0.0", | ||||||||||||||||||||||||||||||||||||||||||||||
| "langgraph-cli[inmem]~=0.3.1", | ||||||||||||||||||||||||||||||||||||||||||||||
| "openevals~=0.0.19", | ||||||||||||||||||||||||||||||||||||||||||||||
| "debugpy~=1.8.14", | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -100,3 +103,31 @@ ignore_errors = false | |||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| [tool.codespell] | ||||||||||||||||||||||||||||||||||||||||||||||
| skip = "node_modules" | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| [tool.coverage.run] | ||||||||||||||||||||||||||||||||||||||||||||||
| source = ["src"] | ||||||||||||||||||||||||||||||||||||||||||||||
| omit = [ | ||||||||||||||||||||||||||||||||||||||||||||||
| "*/tests/*", | ||||||||||||||||||||||||||||||||||||||||||||||
| "*/test_*.py", | ||||||||||||||||||||||||||||||||||||||||||||||
| "*/__pycache__/*", | ||||||||||||||||||||||||||||||||||||||||||||||
| "src/demo/*", | ||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| [tool.coverage.report] | ||||||||||||||||||||||||||||||||||||||||||||||
| precision = 2 | ||||||||||||||||||||||||||||||||||||||||||||||
| show_missing = true | ||||||||||||||||||||||||||||||||||||||||||||||
| skip_covered = false | ||||||||||||||||||||||||||||||||||||||||||||||
| exclude_lines = [ | ||||||||||||||||||||||||||||||||||||||||||||||
| "pragma: no cover", | ||||||||||||||||||||||||||||||||||||||||||||||
| "def __repr__", | ||||||||||||||||||||||||||||||||||||||||||||||
| "if self.debug:", | ||||||||||||||||||||||||||||||||||||||||||||||
| "if settings.DEBUG", | ||||||||||||||||||||||||||||||||||||||||||||||
| "raise AssertionError", | ||||||||||||||||||||||||||||||||||||||||||||||
| "raise NotImplementedError", | ||||||||||||||||||||||||||||||||||||||||||||||
| "if 0:", | ||||||||||||||||||||||||||||||||||||||||||||||
| "if __name__ == .__main__.:", | ||||||||||||||||||||||||||||||||||||||||||||||
| "if TYPE_CHECKING:", | ||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+120
to
+130
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Exclude-line pattern is incorrect – coverage filter will never match
which is missing the quoting around - "if __name__ == .__main__.:",
+ "if __name__ == '__main__':",Without the fix, the typical “run as script” guard stays in the coverage report and can artificially drop overall percentages. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| [tool.coverage.html] | ||||||||||||||||||||||||||||||||||||||||||||||
| directory = "htmlcov" | ||||||||||||||||||||||||||||||||||||||||||||||
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.
💡 Verification agent
🧩 Analysis chain
Verify
test-coverageMakefile target and outputEnsure the Makefile defines a
test-coveragetarget and that it produces a valid coverage report (e.g.,coverage.xml) at the repo root. Without it, the Codecov upload will have no data.🏁 Script executed:
Length of output: 166
🏁 Script executed:
Length of output: 346
Add XML coverage output for Codecov
The
test-coveragetarget only generates HTML and terminal reports, so nocoverage.xmlis produced for Codecov to upload. Please update the Makefile to include XML output:• File: Makefile (around line 48)
This will emit
coverage.xmlat the repo root for the Codecov action.🤖 Prompt for AI Agents