Replace doctests
with in-house equivalent
#11654
Replies: 1 comment 5 replies
-
One downside of a in-house unit testing solution is that we'll lose the benefits of IDE integration. I'm not sure how many people rely on IDE integrations for our existing doctest suite though (I don't).
Stress tests were added before godot-benchmarks was in place, so I agree these should all be moved to godot-benchmarks now.
C++20 supports
godotengine/godot#99254 should handle this in the future. While having this behavior part of the unit test might make more sense, we can make it so that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm in the process of creating a proposal for standardizing benchmarking across the godot repo, and am making several comparisons to both the existing doctests system & our existing benchmarking repo. What I've come to realize is that our use of doctests has been mishandled to the point it warrants a dedicated discussion. Our current implementation has a required header include for every single test & exposes all test internals in header files, which serves to hide dependency issues that're currently running rampant in our repo. While doctools should have a system where we can declare functions in header files & define them in source files, we still risk hiding issues from the required workarounds for converting to their dedicated systems & equality functions. This, compounded with simply not needing the majority of doctest's functionality, makes me believe that we should migrate to an in-house system instead.
This would, understandably, be a rather significant change. So it feels appropriate to lay bare what kind of goals and requirements would be expected of an idealized testing system (non-exhaustive):
#include
system.constexpr
, though that's being worked on.Beta Was this translation helpful? Give feedback.
All reactions