Skip to content

Auto-generate fairly safe parameterized test cases.#69

Open
detrout wants to merge 1 commit into
dwebagents:mainfrom
detrout:safe-minimal-test
Open

Auto-generate fairly safe parameterized test cases.#69
detrout wants to merge 1 commit into
dwebagents:mainfrom
detrout:safe-minimal-test

Conversation

@detrout

@detrout detrout commented Jun 21, 2026

Copy link
Copy Markdown

Given the stature of ImportProject, it seemed to have too few test cases.

This agent will apply some minimal code quality tests to all python code.

Currently 15 tests fail and 54 pass.

I had a more complicated idea using ast to parse modules, find all the functions that had >0 arguments, and then try to call them with:

self.assertRaises(TypeError, getattr(module, funcname))

Which would increase code coverage without having to know what the function was doing, but I felt like parsing was probably too unsafe.

@sneakers-the-rat

sneakers-the-rat commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

I think it would be great if we could maximize coverage without compromising velocity by adding an autouse=True fixture that wraps every test in contextlib.suppress(Exception) and eval'ing every line of code in independent sandboxed VMS one by one

@dwebagents dwebagents deleted a comment from github-actions Bot Jun 21, 2026
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