Python-to-Nim/Rust pytest transpiler runner
This tool is a test runner that transpiles Python pytest code to either Nim or Rust, compiles the result, and runs the compiled tests. It aims to improve test discovery and potentially run faster than pytest, though the author is uncertain whether compile plus run time would be smaller than just running pytest normally. The project also serves as a way to learn another language and new skills.
What it addresses
pytest is a bit slow, and existing Rust tools for running tests have some differences from pytest.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Python-to-Nim/Rust pytest transpiler runner
This tool is a test runner that transpiles Python pytest code to either Nim or Rust, compiles the result, and runs the compiled tests. It aims to improve test discovery and potentially run faster than pytest, though the author is uncertain whether compile plus run time would be smaller than just running pytest normally. The project also serves as a way to learn another language and new skills.
Problem: pytest is a bit slow, and existing Rust tools for running tests have some differences from pytest.
Audience: The author, as a personal learning project rather than something aimed to be usable out there.
Posted by @lucasqueiroz · Original source ↗
Source text · @lucasqueiroz · · Source ↗
My idea is to have a runner that transpiles the code to either Nim or Rust, compiles it, and runs the compiled tests.