
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
rytest is a reasonably fast, somewhat Pytest compatible Python test runner.
Note that this is currently under heavy development, and will likely not work for all but the simplest test suites.
What's wrong with pytest? Well, nothing per se. It's been a great test runner for many years. But it also tends to be quite slow, especially if you are looking to do things like automatically rerun your tests across a large codebase.
Rytest is an experiment to see if we can get a much faster test runner that is still compatible with the pytest ecosystem. Some day we hope to build on that and provide an evolution of the testing experience for python.
For now though you may be asking, how much faster is this really? Well, we've only built support for test collection so far, but it's substantially faster against a couple of popular Python codebases.
We are releasing versions of rytest as we complete major feature groups. The following list is a rough roadmap of what we we expect to deliver:
This means that early released may not be suitable for production work, but we hope people can pull it down, try it out, and provide feedback.
The roadmap to 2.0 will focus more on developing an interface unique to rytest, more to come on that!
The simple version is:
$ rytest tests
This will run tests in any python file in the tests
directory that starts
with test_
.
In order for maturin to build and link against python, you will need to ensure there is a virtualenv available to it:
python3 -m venv .venv
To test against our local test fixtures, run:
cargo run -- tests -v
To run the test suite, run:
cargo test
We make use of the insta
crate for snapshot testing. If you need to update
snapshots, run:
cargo install cargo-insta
cargo insta review
For more information, check out the documentation.
Before contributing code to this repository, recognize that you should run the following to satisfy CI:
cargo fmt
cargo build
cargo clippy
cargo test
These will all be run in CI to validate your code.
We wanted to thank the Astral team for providing a great example of how to manage a lot of the scaffold around a Rust/Python project, which has alllowed us to focus on the core of rytest.
FAQs
rytest is a reasonably fast, somewhat Pytest compatible Python test runner.
We found that rytest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.