Add support for Rust-like in source tests. #894
ChristianPavilonis
started this conversation in
Ideas
Replies: 1 comment
-
Deploying PHPUnit/Pest and all your tests to production seems like a bad idea. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I drafted an example PR of how it could possibly work (#893).
I find that in the Rust world and while writing tests using Vitest writing them in-source is a better way to write unit tests not being divorced from the source code.
Example:
The PR just conditionally declares Pest's functions with empty signatures, so when the file's are loaded those functions do get run but have no effect. I'm not sure what kind of overhead that might have on a large code-base though.
Beta Was this translation helpful? Give feedback.
All reactions