Registry / testing / minitest-hooks

minitest-hooks

JSON →
library1.5.4rbrubygemsunverified

Adds around, before_all, after_all, and around_all hooks to Minitest for efficient test setup and teardown.

gem install minitest-hooks
INSTALL
IMPORT
SIG · MINITEST-HOOKS
M
minitest-hooks
testingrubyv1.5.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Minitest::Hooks
require 'minitest/hooks'

Use around_all hook to wrap all tests in a database transaction

require 'minitest/hooks' class MyTest < Minitest::Test include Minitest::Hooks def around_all DB.transaction(rollback: :always) { super } end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
minitest-hooks — gem install minitest-hooks · libregistry