
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
It's a regression test selection tool for ruby, an implementation of some ideas by Mr. Tenderlove expressed here.
Reading the article will give you a good idea, but here's a short summary:
Gather coverage information during test runs, before and after each test method in order to know which test methods ran which files and lines of the tested application code.
Change the application code.
Covet shows you which tests to run based on the coverage information
gathered in step 1, and the fact that git
knows that you changed
certain lines of the application code.
Add covet
to your Gemfile in your test or development :group
, or:
$ gem install covet
Coverage Collection:
Run your test suite with coverage collection on. To enable this,
add require 'covet'
before any tests run (in a test helper file or similar),
and run your suite with: covet -c $CMD
, where $CMD is the command to run your
test suite. Example:
$ covet -c "rake test"
Covet should output a message before any other message:
Collecting coverage information for each test method...
By default, covet
hooks into minitest
and collects coverage before
and after each method. If you're using rspec
, make sure to pass the -t
option:
$ covet -t rspec -c "rake test"
After this, you should have 2 new files: run_log.json
, and
run_log_index.json
.
Now, by default the covet
command will print out which test
files should be run based off the changes in your git repo since
the last commit.
For example:
$ covet
You need to run:
- /home/luke/Desktop/code/rails/activesupport/test/test\_case\_test.rb
To execute the run list, simply:
$ covet -e
By default, covet
removes all standard library and gem files from the run_log
, because
it assumes you're testing your own library code. In order to test a gem, you need to add the
--whitelist-gems
option. For example:
$ covet -c "rake test" --whitelist-gems "activesupport,rails"
It's not tested thoroughly enough.
Don't rely on this library to be correct yet (ie: don't forgo full test suite runs before committing to a repository). It's still early days. Please contribute code, docs, or ideas, though!
FAQs
Unknown package
We found that covet demonstrated a not healthy version release cadence and project activity because the last version was released 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
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.