
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Prints a list of tests that take too long.
gem instal minitest-snail
Minitest Snail can be enabled from the command line using the max-duration
parameter:
ruby test/example_test.rb --max-duration 2
This would print out a list of any tests taking longer than 2 seconds to run:
# Running:
....
Finished in 5.001143s
4 runs, 7 assertions, 0 failures, 0 errors, 0 skips
2 slow tests.
0) ExampleTest#test_alpha: 2.30 s
1) ExampleTest#test_beta: 2.11 s
If you don't run your tests directly, you can programmatically enable Minitest Snail:
Minitest::SnailReporter.enable!
You can also configure it using enable!
:
Minitest::SnailReporter.enable! :max_duration => 2.5
If you are using Rails, your test/test_helper.rb
file is good place to do this initialization.
FAQs
Unknown package
We found that minitest-snail 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
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.