devenjarvis / sundew

Making Python testing easy, enjoyable, and effective ☀️
https://devenjarvis.github.io/sundew/
MIT License
10 stars 1 forks source link

Test-case generation for runtime exceptions #34

Open devenjarvis opened 1 year ago

devenjarvis commented 1 year ago

One extension of the automatic test writer that I've thought about is a function to automatically generate a failing test when a runtime exception occurs in your code. This could be helpful for reproducing and fixing bugs found in production. Still need to feel this out, but I think it could be very useful if done right.

One trade-off is that I've designed sundew to not be a runtime module so far. There's higher security responsibility for code that runs at runtime, and more pressure to keep code size down, and performance high. It may be that a slim sibling-module makes more sense for this usecase 🤔