Add tests agent (assertion quality, global state teardown, coverage gaps) #37
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WuMing has no reviewer for test quality. A tests agent would examine changed test and source files for: tests added without assertions, trivial/tautological assertions (assert True, assertEqual(x, x)), tests that mutate shared state without teardown, and source files modified in a diff without any corresponding test file change. The broad file scope (all source languages) is needed to enable the coverage-gap detection.
Findings from codebase exploration:
BaseAgent;review()filters diffs byfile_patternsusingfnmatch.fnmatch, calls the backend, and parses JSONCodeAgent(all source languages) so it receives both test files and source files in a single diff — necessary for the coverage-gap checktest_*,*_test.*,*.test.*,*.spec.*,**/tests/**)tests_agent.pyto avoid shadowing thetests/package directory (same reasonconfig_agent.pyexists instead ofconfig.py)Plan of attack: implemented together with issue #36 on branch
feat/issue-36-37-performance-tests-agents