Expand test suite to 147 tests (93% coverage), fix agent bugs, add cookbook#7
Merged
Merged
Conversation
…okbook Testing & CI: - Add 116 new tests across 6 files (base-agent errors, config, extended math/data-analyst/orchestrator behaviour, simple client + hybrid demo), bringing the suite to 147 tests at ~93% branch coverage. - Annotate tests with Allure feature/story/title metadata. - CI now runs pytest with coverage (90% gate) and uploads Allure results. - Add pytest-cov + allure-pytest dev deps and coverage config in pyproject. Bug fixes: - math_agent: _extract_matrices now groups rows into full 2D matrices instead of treating each [...] as a separate single-row matrix; add determinant handling; support negative numbers in array/matrix parsing. - data_analyst_agent: show "N/A" for undefined skewness/kurtosis on tiny samples (was emitting nan); support negative numbers in array/tuple parsing; drop unused imports (seaborn, io, base64, tempfile). Other: - examples/simple_hybrid_demo: support both script and package import modes. - README: update badges (147 tests, 93% coverage), document coverage + Allure. - Add COOKBOOK.md with library-usage recipes; ignore allure output dirs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expands the test suite from 31 → 147 tests at ~93% branch coverage, fixes two real agent bugs surfaced by the new tests, wires coverage + Allure into CI, and adds a library-usage cookbook.
Testing & CI
@allure.feature/story/titleso an Allure report reads as living behaviour docs.pytest --covwith a 90% coverage gate and uploads Allure results as an artifact.pytest-cov+allure-pytestdev deps and[tool.coverage.*]config.Bug fixes
math_agent._extract_matrices: previously treated every[...]as a separate single-row matrix, so[[1,2],[3,4]]parsed wrong. Now groups rows into full 2D matrices. Also adds determinant handling and negative-number support in matrix/array parsing.data_analyst_agent: emits"N/A"for undefined skewness/kurtosis on tiny samples (was printingnan); supports negative numbers in array/tuple parsing; drops unused imports (seaborn,io,base64,tempfile).Docs / misc
examples/simple_hybrid_demo.py: works both as a script and as an imported package module.COOKBOOK.mdwith copy-pasteable library recipes;allure-results/gitignored.Verification
pytest --cov→ 147 passed, 93.37% coverage (gate 90%) locally on Python 3.14.🤖 Generated with Claude Code